{"id":15690473,"url":"https://github.com/linusu/node-xorshift128plus","last_synced_at":"2025-05-07T23:41:23.098Z","repository":{"id":57402046,"uuid":"50412751","full_name":"LinusU/node-xorshift128plus","owner":"LinusU","description":"xorshift128+ implementation for Node.js","archived":false,"fork":false,"pushed_at":"2016-01-26T07:54:11.000Z","size":4,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-04T02:03:01.518Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/LinusU.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}},"created_at":"2016-01-26T07:52:25.000Z","updated_at":"2020-05-27T11:13:32.000Z","dependencies_parsed_at":"2022-09-15T18:40:43.107Z","dependency_job_id":null,"html_url":"https://github.com/LinusU/node-xorshift128plus","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/LinusU%2Fnode-xorshift128plus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-xorshift128plus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-xorshift128plus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-xorshift128plus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinusU","download_url":"https://codeload.github.com/LinusU/node-xorshift128plus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252973616,"owners_count":21834105,"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-10-03T18:10:19.352Z","updated_at":"2025-05-07T23:41:23.076Z","avatar_url":"https://github.com/LinusU.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XorShift128Plus\n\nA seedable random number generator.\n\n## Installation\n\n```sh\nnpm install --save xorshift128plus\n```\n\n## Usage\n\n```javascript\nvar XorShift128Plus = require('xorshift128plus')\nvar rng = XorShift128Plus.fromRandom()\n\nrng.next() // random number\n```\n\n## API\n\n### `new XorShift128Plus(buffer[, byteOffset])`\n\nCreates a new RNG using the supplied ArrayBuffer and optional offset. Using the\nRNG will modify the supplied buffer. The initial seed should be stored in the\nbuffer.\n\n### `XorShift128Plus.fromRandom()`\n\nCreates a new RNG with a psuedo-random seed chosen for you.\n\n### `XorShift128Plus.fromHex(seed)`\n\nCreates a new RNG with the seed specified as a string of 32 hexadecimal\ncharacters. e.g. `'5d289450c888f99b5e5c1fd13509e39e'`.\n\n### `XorShift128Plus.fromUint32(seed)`\n\nCreates a new RNG with the seed specified as a unsigned 32bit integer. Note that\nthis seeding is suboptimal since it will only contain 32 bits of entropy instead\nof 128 bits.\n\n### `rng.next() -\u003e Number`\n\nReturns the next psuedo-random number between 0 (inclusivly) and 1 (exclusivly).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Fnode-xorshift128plus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinusu%2Fnode-xorshift128plus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Fnode-xorshift128plus/lists"}