{"id":15777197,"url":"https://github.com/healeycodes/unrandom","last_synced_at":"2025-05-12T20:54:43.535Z","repository":{"id":247478941,"uuid":"825788957","full_name":"healeycodes/unrandom","owner":"healeycodes","description":"🎲 Intercept and modify getrandom syscalls from a process (x86-64 Linux).","archived":false,"fork":false,"pushed_at":"2024-07-08T14:59:28.000Z","size":2,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-05T17:43:03.379Z","etag":null,"topics":["getrandom","ptrace","syscalls"],"latest_commit_sha":null,"homepage":"https://healeycodes.com/making-python-less-random","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/healeycodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-07-08T13:54:42.000Z","updated_at":"2024-07-15T19:20:57.000Z","dependencies_parsed_at":"2024-07-09T02:10:53.720Z","dependency_job_id":null,"html_url":"https://github.com/healeycodes/unrandom","commit_stats":null,"previous_names":["healeycodes/unrandom"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Funrandom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Funrandom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Funrandom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Funrandom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/healeycodes","download_url":"https://codeload.github.com/healeycodes/unrandom/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253822478,"owners_count":21969831,"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":["getrandom","ptrace","syscalls"],"created_at":"2024-10-04T17:43:12.595Z","updated_at":"2025-05-12T20:54:43.499Z","avatar_url":"https://github.com/healeycodes.png","language":"C","readme":"# 🎲 unrandom\n\u003e My blog post: [Making Python Less Random](https://healeycodes.com/making-python-less-random)\n\n\u003cbr\u003e\n\nForce `getrandom` syscalls from a process to return zeroes on x86-64 Linux.\n\n\u003cbr\u003e\n\nStart a Python REPL. Then build and run `getrandom`:\n\n```txt\ngcc -o unrandom unrandom.c\n./unrandom \u003cpython's pid\u003e\n```\n\nCall `os.urandom` in the REPL:\n\n```txt\n\u003e\u003e\u003e import os\n\u003e\u003e\u003e os.urandom(8)\nb'\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00'\n\u003e\u003e\u003e os.urandom(8)\nb'\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00'\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhealeycodes%2Funrandom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhealeycodes%2Funrandom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhealeycodes%2Funrandom/lists"}