{"id":18437889,"url":"https://github.com/zilliqa/sodium-randbytes","last_synced_at":"2025-04-14T13:14:31.164Z","repository":{"id":96251088,"uuid":"453567161","full_name":"Zilliqa/sodium-randbytes","owner":"Zilliqa","description":"sodium-randbytes","archived":false,"fork":false,"pushed_at":"2022-02-21T10:10:47.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-02-16T10:43:01.238Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/sodium-randbytes/access","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Zilliqa.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-30T02:12:11.000Z","updated_at":"2022-03-10T12:09:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"392f91c6-3419-4d43-85c4-278d6acbbe0d","html_url":"https://github.com/Zilliqa/sodium-randbytes","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/Zilliqa%2Fsodium-randbytes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zilliqa%2Fsodium-randbytes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zilliqa%2Fsodium-randbytes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zilliqa%2Fsodium-randbytes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zilliqa","download_url":"https://codeload.github.com/Zilliqa/sodium-randbytes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248886341,"owners_count":21177645,"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-06T06:16:34.479Z","updated_at":"2025-04-14T13:14:31.134Z","avatar_url":"https://github.com/Zilliqa.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e\n  sodium-randbytes\n  \u003c/h1\u003e\n\u003c/div\u003e\n\u003chr/\u003e\n\u003cdiv\u003e\n  \u003ca href=\"https://www.npmjs.com/package/sodium-randbytes\" target=\"_blank\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/v/sodium-randbytes\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://app.travis-ci.com/Zilliqa/sodium-randbytes\" target=\"_blank\"\u003e\n  \u003cimg src=\"https://app.travis-ci.com/Zilliqa/sodium-randbytes.svg?branch=main\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://codecov.io/gh/Zilliqa/sodium-randbytes\" target=\"_blank\"\u003e\n  \u003cimg src=\"https://codecov.io/gh/Zilliqa/sodium-randbytes/branch/main/graph/badge.svg?token=WWDI2IW4Dn\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"LICENSE\" target=\"_blank\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/License-GPLv3-blue.svg\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\n\nIt uses `randombytes_buf` of [`sodium-native`](https://github.com/sodium-friends/sodium-native) in Node and [`Crypto.getRandomValues`](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues) in the browser.\n\n## Installation\n\n```sh\nnpm i sodium-randbytes\n# or\nyarn add sodium-randbytes\n```\n\n## Usage\n\n```ts\nimport randomBytes from \"sodium-randbytes\";\n\n// get 20 random bytes\nconst result = randomBytes(20);\n```\n\n## License\n\nThis project is open source software licensed as [GPL-3.0](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzilliqa%2Fsodium-randbytes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzilliqa%2Fsodium-randbytes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzilliqa%2Fsodium-randbytes/lists"}