{"id":19238527,"url":"https://github.com/tmpfs/wasm-rand","last_synced_at":"2025-02-23T13:52:50.798Z","repository":{"id":66127971,"uuid":"432865787","full_name":"tmpfs/wasm-rand","owner":"tmpfs","description":"Generate random values via WASM","archived":false,"fork":false,"pushed_at":"2021-12-06T06:13:09.000Z","size":105,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-05T02:12:15.984Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/tmpfs.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":"2021-11-29T01:08:32.000Z","updated_at":"2021-12-06T04:49:21.000Z","dependencies_parsed_at":"2023-03-10T23:38:43.766Z","dependency_job_id":null,"html_url":"https://github.com/tmpfs/wasm-rand","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/tmpfs%2Fwasm-rand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmpfs%2Fwasm-rand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmpfs%2Fwasm-rand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmpfs%2Fwasm-rand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmpfs","download_url":"https://codeload.github.com/tmpfs/wasm-rand/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240324059,"owners_count":19783453,"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-11-09T16:33:12.747Z","updated_at":"2025-02-23T13:52:50.781Z","avatar_url":"https://github.com/tmpfs.png","language":"JavaScript","readme":"# RNG in WASM\n\nDemo for generating random values in WASM via `Crypto.getRandomValues()` (see [webcrypto](https://github.com/w3c/webcrypto/)).\n\nThe `main` branch tests using `rand@0.8` with `getrandom@0.2` using multiple threads enabled using [wasm-bindgen-rayon](https://github.com/GoogleChromeLabs/wasm-bindgen-rayon).\n\nFor single-threaded versions see the `rand-0.8` and `rand-0.6.5` (older `wasm-bindgen` feature) branches.\n\n## Prerequisites\n\n* `rust@1.54.0`\n* `wasm-pack@0.9.1`\n* `node@14.17.0`\n\n## Setup\n\n```\nmake setup\n```\n\n## Serve\n\n```\n# Compile the webassembly module\nmake wasm\n# Start the client on http://localhost:8080\nmake client\n```\n\nNow visit `http://localhost:8080`.\n\n## Development\n\nDuring development you should link the WASM module:\n\n```\ncd wasm/pkg \u0026\u0026 yarn link\ncd client \u0026\u0026 yarn link wasm-rand\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmpfs%2Fwasm-rand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmpfs%2Fwasm-rand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmpfs%2Fwasm-rand/lists"}