{"id":16724317,"url":"https://github.com/badboy/noiserand","last_synced_at":"2025-06-17T16:37:11.638Z","repository":{"id":57645442,"uuid":"352189216","full_name":"badboy/noiserand","owner":"badboy","description":null,"archived":false,"fork":false,"pushed_at":"2021-03-27T22:24:55.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-11T06:09:06.207Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","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/badboy.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}},"created_at":"2021-03-27T22:16:49.000Z","updated_at":"2024-04-14T15:17:47.000Z","dependencies_parsed_at":"2022-09-08T16:41:40.529Z","dependency_job_id":null,"html_url":"https://github.com/badboy/noiserand","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/badboy/noiserand","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badboy%2Fnoiserand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badboy%2Fnoiserand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badboy%2Fnoiserand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badboy%2Fnoiserand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/badboy","download_url":"https://codeload.github.com/badboy/noiserand/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badboy%2Fnoiserand/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260399988,"owners_count":23003291,"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":[],"created_at":"2024-10-12T22:44:48.015Z","updated_at":"2025-06-17T16:37:06.627Z","avatar_url":"https://github.com/badboy.png","language":"Rust","readme":"# noiserand\n\n[![Crates.io version](https://img.shields.io/crates/v/noiserand.svg?style=flat-square)](https://crates.io/crates/noiserand)\n[![docs.rs docs](https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square)](https://docs.rs/noiserand)\n[![License: MIT](https://img.shields.io/github/license/badboy/noiserand?style=flat-square)](LICENSE)\n\n## Random white noise turned into random numbers\n\nThe [ANU QRNG] project offers true random numbers to anyone on the internet.\nBy their description:\n\n\u003e The random numbers are generated in real-time in our lab\n\u003e by measuring the quantum fluctuations of the vacuum.\n\nThe random numbers are offered in a variety of formats,\nincluding as [five seconds of white noise][whitenoise].\n\nThis can be turned back into random bytes and used wherever one need [`rand::Rng`](https://docs.rs/rand/0.8.3/rand/trait.Rng.html).\n\n## Example\n\n```rust\nuse noiserand::NoiseRand;\nuse rand::Rng;\n\nlet mut rng = NoiseRand::new();\nlet x: u32 = rng.gen();\nprintln!(\"{}\", x);\n```\n\n## Listen to randomness.\n\nYou can run the included example that turns a stream of random bytes back into noise:\n\n```\ncargo run --example play\n```\n\n## Should I really use that?\n\nI mean ... it's guaranteed to be random.\n\nIt's also slow.\nOn the first request for random data it will fetch a 5s audio sample\nfrom the [ANU QRNG] project, parse the WAVE file\nand then use the samples as random numbers.\nAfter about 588 kB of random data generated,\nit sends off another HTTP request to fill the buffer again.\n\nPlease don't overload the servers.\nThey do however accept donations, see [FAQ: Donating to ANU QRNG][donation].\n\n[ANU QRNG]: https://qrng.anu.edu.au/\n[whitenoise]: https://qrng.anu.edu.au/random-white-noise/\n[donation]: https://qrng.anu.edu.au/contact/faq/#giving\n\n# License\n\n\nMIT. See [LICENSE](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadboy%2Fnoiserand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbadboy%2Fnoiserand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadboy%2Fnoiserand/lists"}