{"id":15370287,"url":"https://github.com/jedisct1/tinygo-wasi_rand","last_synced_at":"2026-05-10T13:52:15.267Z","repository":{"id":57581946,"uuid":"370367008","full_name":"jedisct1/tinygo-wasi_rand","owner":"jedisct1","description":"crypto/rand for TinyGo/WASI","archived":false,"fork":false,"pushed_at":"2021-05-24T18:39:50.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-11T23:33:13.553Z","etag":null,"topics":["crypto","csprng","tinygo","wasi","wasm"],"latest_commit_sha":null,"homepage":"","language":"Go","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/jedisct1.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-05-24T13:45:07.000Z","updated_at":"2021-05-25T04:26:31.000Z","dependencies_parsed_at":"2022-09-26T19:32:04.018Z","dependency_job_id":null,"html_url":"https://github.com/jedisct1/tinygo-wasi_rand","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedisct1%2Ftinygo-wasi_rand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedisct1%2Ftinygo-wasi_rand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedisct1%2Ftinygo-wasi_rand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedisct1%2Ftinygo-wasi_rand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jedisct1","download_url":"https://codeload.github.com/jedisct1/tinygo-wasi_rand/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241346485,"owners_count":19947973,"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":["crypto","csprng","tinygo","wasi","wasm"],"created_at":"2024-10-01T13:40:46.229Z","updated_at":"2026-05-10T13:52:10.227Z","avatar_url":"https://github.com/jedisct1.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A CSPRNG for TinyGo/WebAssembly (WASI)\n\nTinyGo doesn't support `crypto/rand` yet, which is quite of a deal breaker for many cryptographic operations.\n\nThis module implements `wasi_rand`, a secure random number generator for TinyGo when used in a WebAssembly/WASI environment.\n\nUsage:\n\n```go\nimport (\n    wasi_rand \"github.com/jedisct1/tinygo-wasi_rand\"\n)\n\nfunc main() {\n    var key [32]byte\n    if err := wasi_rand.Read(key[:]); err != nil {\n        // panic: no entropy source available\n    }\n}\n```\n\n`wasi_rand.Read()` can fill buffers of arbitrary sizes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjedisct1%2Ftinygo-wasi_rand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjedisct1%2Ftinygo-wasi_rand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjedisct1%2Ftinygo-wasi_rand/lists"}