{"id":21548519,"url":"https://github.com/technion/use_urandom","last_synced_at":"2025-09-04T07:07:05.704Z","repository":{"id":59158848,"uuid":"58021988","full_name":"technion/use_urandom","owner":"technion","description":"A Ruby gem that patches SecureRandom to use /dev/urandom","archived":false,"fork":false,"pushed_at":"2018-01-16T08:40:31.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-27T09:15:00.867Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/technion.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-04T04:09:54.000Z","updated_at":"2021-12-02T18:00:08.000Z","dependencies_parsed_at":"2022-09-13T20:11:31.331Z","dependency_job_id":null,"html_url":"https://github.com/technion/use_urandom","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/technion/use_urandom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technion%2Fuse_urandom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technion%2Fuse_urandom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technion%2Fuse_urandom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technion%2Fuse_urandom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/technion","download_url":"https://codeload.github.com/technion/use_urandom/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technion%2Fuse_urandom/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273568522,"owners_count":25128806,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-24T06:18:54.666Z","updated_at":"2025-09-04T07:07:05.684Z","avatar_url":"https://github.com/technion.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UseUrandom\nTurns out, Ruby's SecureRandom makes some poor design decisions.\nThis gem monkey patches SecureRandom to use /dev/urandom.\n\n# UPDATE\n\nThis Gem is largely pointless now that modern versions of Ruby use a secure entry source.\n\nSee this bug: https://bugs.ruby-lang.org/issues/9569\n\n\n\n## FAQ\n### Why write this and what is wrong with SecureRandom?\nThere are a lot of material involved in answering this, but the best starting point is [this HN thread, from which this gem was inspired](https://news.ycombinator.com/item?id=11624890)\n### What about Random.raw_seed?\nThe purpose of this gem, as per the name, is to use /dev/urandom. That function takes several code paths, one possibility of which, is reading /dev/urandom. raw_seed() meanwhile, is written in C, and packed with #define's that control flow. I don't intend on auditing it line by line, and the fact this gem is necessary reduces needed limits my confidence in it.\n### But my server will run out of entropy!\nIf you truly believe that, don't use this gem. Definitely don't open an issue demonstrating ignorance.\n\n## Usage\n\nThis gem is in the super pre-alpha stage and shouldn't be used.\nJust require it in your application:\n\n```ruby\nrequire 'use_urandom'\n```\n\nAny calls to SecureRandom will automatically get redirected to a read on /dev/urandom. Any failures get pushed back to the original code, with a warning raised. \n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/technion/use_urandom.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnion%2Fuse_urandom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechnion%2Fuse_urandom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnion%2Fuse_urandom/lists"}