{"id":20246604,"url":"https://github.com/skepticalhippo/crypto-random","last_synced_at":"2025-06-22T19:08:53.610Z","repository":{"id":55430160,"uuid":"88430074","full_name":"SkepticalHippo/crypto-random","owner":"SkepticalHippo","description":"A cryptographically strong random number generator. Designed to be a drop-in replacement for Math.random. Can be used with Node or in a browser.","archived":false,"fork":false,"pushed_at":"2025-04-11T22:41:49.000Z","size":10677,"stargazers_count":8,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-22T19:08:37.637Z","etag":null,"topics":["browser","crypto","javascript","nodejs","random","random-generation","random-number-generators"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SkepticalHippo.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-04-16T17:08:49.000Z","updated_at":"2025-04-11T22:41:52.000Z","dependencies_parsed_at":"2025-06-22T19:08:39.112Z","dependency_job_id":null,"html_url":"https://github.com/SkepticalHippo/crypto-random","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SkepticalHippo/crypto-random","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkepticalHippo%2Fcrypto-random","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkepticalHippo%2Fcrypto-random/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkepticalHippo%2Fcrypto-random/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkepticalHippo%2Fcrypto-random/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SkepticalHippo","download_url":"https://codeload.github.com/SkepticalHippo/crypto-random/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkepticalHippo%2Fcrypto-random/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261348755,"owners_count":23145314,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser","crypto","javascript","nodejs","random","random-generation","random-number-generators"],"created_at":"2024-11-14T09:31:06.182Z","updated_at":"2025-06-22T19:08:48.596Z","avatar_url":"https://github.com/SkepticalHippo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Crypto-Random\n\n![tests](https://github.com/SkepticalHippo/crypto-random/actions/workflows/test.yml/badge.svg)\n\nA zero dependency, cryptographically strong, random number generator. \n\nDesigned to be a drop-in replacement for `Math.random`. Can be used with Node or in the browser.\n\n## Supported Versions\n\n* Node 14.x+ (up to Node 18.x)\n* For supported browsers please refer to [this MDN article](https://developer.mozilla.org/en-US/docs/Web/API/RandomSource/getRandomValues).\n\n## Install\n\n`npm i crypto-random`\n\n## Usage\n\n```js\nconst Random = require('crypto-random');\n\nconsole.log(Random.value()); // a random float between 0 and 1. Replacement function for Math.random.\nconsole.log(Random.range(10, 101)); // a random integer between 10 and 101.\n```\n\n## Contributing\n\nFeedback and any contributions are very welcome. Please open up an Issue or a Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskepticalhippo%2Fcrypto-random","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskepticalhippo%2Fcrypto-random","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskepticalhippo%2Fcrypto-random/lists"}