{"id":20318279,"url":"https://github.com/dvorakdwarf/raceng","last_synced_at":"2025-06-17T14:38:49.651Z","repository":{"id":151967759,"uuid":"625101209","full_name":"DvorakDwarf/RaceNG","owner":"DvorakDwarf","description":"Breakthrough random number generation using a race condition","archived":false,"fork":false,"pushed_at":"2023-04-09T17:46:35.000Z","size":12,"stargazers_count":35,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-11T18:04:27.579Z","etag":null,"topics":["joke","library","rng","rust"],"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/DvorakDwarf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2023-04-08T04:28:11.000Z","updated_at":"2025-04-09T13:43:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"eb76147f-c124-4aee-9a1a-9ebd527cef4c","html_url":"https://github.com/DvorakDwarf/RaceNG","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DvorakDwarf%2FRaceNG","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DvorakDwarf%2FRaceNG/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DvorakDwarf%2FRaceNG/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DvorakDwarf%2FRaceNG/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DvorakDwarf","download_url":"https://codeload.github.com/DvorakDwarf/RaceNG/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248456369,"owners_count":21106603,"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":["joke","library","rng","rust"],"created_at":"2024-11-14T18:38:48.265Z","updated_at":"2025-04-11T18:07:40.720Z","avatar_url":"https://github.com/DvorakDwarf.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RaceNG\nRevolutionary, innovative, groundbreaking random number generator using race conditions written in Rust. I wrote this in like an hour because I thought it would be funny (it was). I should not need to tell you this is not a reliable source of RNG you should depend on. If you do end up using it for smthn, please DM me on discord, I want to know. \n\nI even published to [crates.io](https://crates.io/crates/RaceNG), which was suprisingly easy\n\nHow 2 use\n-------------\n1. `cargo add RaceNG`\n2. `let result = RaceNG::race(x, y)`\n3. PROFIT\n\nSample output: \\\n![image](https://user-images.githubusercontent.com/96934612/230705035-2f49ddad-32e8-4682-bbf1-8fdc86915cb5.png)\n\nExplanation 4 nerds\n-------------\nA race condition occurs when 2 or more threads are trying to use the same variable.\n\nBoth threads try to set the variable to a certain value, but due to computer jank, they go about it at different speeds. This means that the value of the shared variable is undefined at a given time. If you print the variable it is *basically* random. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvorakdwarf%2Fraceng","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdvorakdwarf%2Fraceng","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvorakdwarf%2Fraceng/lists"}