{"_id":"secure-shuffle","_rev":"10-a00018844248960d5fc82694fc07f39d","name":"secure-shuffle","description":"Shuffle an array using secure-random-uniform as the RNG","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"secure-shuffle","version":"1.0.0","description":"Shuffle an array using randomBytes as the RNG","main":"index.js","dependencies":{"randombytes":"^2.0.3","tape":"^4.6.0"},"devDependencies":{},"scripts":{"test":"node test"},"repository":{"type":"git","url":"git+ssh://git@github.com/emilbayes/secure-shuffle.git"},"keywords":["secure","shuffle","crypto","mix","random","buffer"],"author":{"name":"Emil Bay","email":"github@tixz.dk"},"license":"ISC","bugs":{"url":"https://github.com/emilbayes/secure-shuffle/issues"},"homepage":"https://github.com/emilbayes/secure-shuffle#readme","gitHead":"ee11290e135f3f94c5499bacaad8920b2ea815a3","_id":"secure-shuffle@1.0.0","_shasum":"ec2fdcad578590f3b74ea34d74fa6903d7967255","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.3.0","_npmUser":{"name":"emilbay","email":"github@tixz.dk"},"dist":{"shasum":"ec2fdcad578590f3b74ea34d74fa6903d7967255","tarball":"https://registry.npmjs.org/secure-shuffle/-/secure-shuffle-1.0.0.tgz","integrity":"sha512-usSN4u+jxKBRKxOKMzMhddje1+P6aQxjPZ/pl16MgPmLBEqq/SPmykhA2U6UzODA10fVvRV7OfvjBXkSWL69QQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHSNhUaMkzosh6ng6HSZshlMnSYqu1U2Xn0eZozkfON9AiEArsxtHINjG1qjhTjuBA3qU6BQTOcD1JrBsn2n6cGEAck="}]},"maintainers":[{"name":"emilbay","email":"github@tixz.dk"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/secure-shuffle-1.0.0.tgz_1473473699688_0.3201770146843046"},"directories":{}},"1.1.0":{"name":"secure-shuffle","version":"1.1.0","description":"Shuffle an array using secure-random-uniform as the RNG","main":"index.js","dependencies":{"secure-random-uniform":"^1.0.0"},"devDependencies":{"tape":"^4.6.0"},"scripts":{"test":"node test"},"repository":{"type":"git","url":"git+ssh://git@github.com/emilbayes/secure-shuffle.git"},"keywords":["secure","shuffle","crypto","mix","random","buffer"],"author":{"name":"Emil Bay","email":"github@tixz.dk"},"license":"ISC","bugs":{"url":"https://github.com/emilbayes/secure-shuffle/issues"},"homepage":"https://github.com/emilbayes/secure-shuffle#readme","gitHead":"d9e8c303815039efeeb5bfaf7e227dd0077bf90b","_id":"secure-shuffle@1.1.0","_shasum":"6174cc6da1196caaa489e7aecdfe7c8f561a415f","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.3.0","_npmUser":{"name":"emilbay","email":"github@tixz.dk"},"dist":{"shasum":"6174cc6da1196caaa489e7aecdfe7c8f561a415f","tarball":"https://registry.npmjs.org/secure-shuffle/-/secure-shuffle-1.1.0.tgz","integrity":"sha512-8fNq3PiIQ6BZD7LBhvQmdxmC4CC6D43Bp9ielcz/woH3jC2KsdDhd+Wmq3de65rIVb0JIvwjCR5b0ZVoMm1TwA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG0eEvmxiYI+Hd6nbrSecm+rK0Gb0HmhrMt8gh9+T5DBAiEA9/eQa7iH4hFNM+SSHxFyT9353/jqdGFGZ1moclz2Lnw="}]},"maintainers":[{"name":"emilbay","email":"github@tixz.dk"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/secure-shuffle-1.1.0.tgz_1476367469908_0.188212844543159"},"directories":{}},"1.2.0":{"name":"secure-shuffle","version":"1.2.0","description":"Shuffle an array using secure-random-uniform as the RNG","main":"index.js","dependencies":{"secure-random-uniform":"^3.0.1"},"devDependencies":{"tape":"^4.6.0"},"scripts":{"test":"node test"},"repository":{"type":"git","url":"git+ssh://git@github.com/emilbayes/secure-shuffle.git"},"keywords":["secure","shuffle","crypto","mix","random","buffer"],"author":{"name":"Emil Bay","email":"github@tixz.dk"},"license":"ISC","bugs":{"url":"https://github.com/emilbayes/secure-shuffle/issues"},"homepage":"https://github.com/emilbayes/secure-shuffle#readme","gitHead":"04fff9f456a87dbe7e108b48c12aedd728876a59","_id":"secure-shuffle@1.2.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"emilbayes","email":"github@tixz.dk"},"dist":{"integrity":"sha512-qQOYsWraLtuXecL8BzUFp9tWM6rF0+9rgsvFKsj4LF4yoBmQs7FSLGVlNfnBAZ7PPsQDB22X6oE6a6Sa7EEqgw==","shasum":"43cdf98ca6e11199d6ebd68c20f399d85e8993db","tarball":"https://registry.npmjs.org/secure-shuffle/-/secure-shuffle-1.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD1o+b89DF54mwnmHJ6jd3IHInzjYFYTBQ+EyMy4UYzqAIgXqbx/k3lr1MHCdiWqlQ3DzhU+TKGk7t7RcwAmZB1mrI="}]},"maintainers":[{"email":"github@tixz.dk","name":"emilbayes"},{"email":"github@tixz.dk","name":"emilbay"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/secure-shuffle-1.2.0.tgz_1515155555680_0.23289181920699775"},"directories":{}},"2.0.0":{"name":"secure-shuffle","version":"2.0.0","description":"Shuffle an array using secure-random-uniform as the RNG","main":"index.js","dependencies":{"secure-random-uniform":"^4.0.0"},"devDependencies":{"tape":"^4.6.0"},"scripts":{"test":"node test"},"repository":{"type":"git","url":"git+ssh://git@github.com/emilbayes/secure-shuffle.git"},"keywords":["secure","shuffle","crypto","mix","random","buffer"],"author":{"name":"Emil Bay","email":"github@tixz.dk"},"license":"ISC","bugs":{"url":"https://github.com/emilbayes/secure-shuffle/issues"},"homepage":"https://github.com/emilbayes/secure-shuffle#readme","gitHead":"abf37d7cbbc6c6ab244c09d1d01b93844b18d736","_id":"secure-shuffle@2.0.0","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-ApCw4REBMAqOyqFRKUyYJXMMnag8lZZ66h56WaHPC2GmEdLht0DhJaPZSgNykyCYrRlGftlK8hAv1E91or15hQ==","shasum":"71dab0675e18cae66bd258c35e61c535617d3b50","tarball":"https://registry.npmjs.org/secure-shuffle/-/secure-shuffle-2.0.0.tgz","fileCount":5,"unpackedSize":3281,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezpcVCRA9TVsSAnZWagAA1FoP/1evMNDyXEvPb+xVYE6+\nSbx1tW9mLjAsDtygTZh6AG8vdrySNWaS+6tgtLQnxzAAlUbiOhDlHPY4imSH\nzvtfH+E4zsmSGAySMcErxtrTNfjwhy5mUBTeR8pcP0M/+3XhcHAgCOodNmyv\nZaIn7WlMi07G8icKaqGImKd7KouRijuxhE5irQDNKLJ0fmhBauYTyIBHWPYi\n07u8o4BKdh2k+r7BfnMKvfpHgrUX7XmdLtJ5ZXPGexvGGMEdlnVuPqmhIdQZ\n1MNhYrp46mzlodOtt8A7a8UFq54FvOlqBxZrV8DHDpGvRd+cCG0tyVStsQT3\n4epNLqXcf3asBAmCXZIrld+U0q/KfWLmnhQUTuPRBhm1Cq7lZrXyeo3ImjXf\nATV9ooFhgJ2/R4HbB7uLp0drB21U61OEWFPxp/mwvjMjSnkLyGNFZy5Z4cXx\nAGSvC67trrMdOE3TfsCGyPt283oZ+lWK8/RjZg8XiBItP2JzmyulvQ+mLCMW\nE06J07f75Fu23gOPIOBnuQEkG+Pr5Vc9YYAp62QCVazgF9DLCt7ruf8GYye2\nRYX82ghxRh9W9BwAKz2QeBblMjOVYsEDAi4KQqecLfUZeiBLCLjcgYZGye4k\nQEHG0w5aY8WidZAfIKE4x14Cd6I4xQJ/aEtDsG83Gl/s/n1dgUxYmfRY4lj5\nNU4G\r\n=s6Jo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH4EyjUvaXyeEiuYMRlit93lFRYgna267vC0c9vo0bpDAiEApxDFBk5rzJRs/8993jXHJ3DfRaYuTW5XHJBxuZpQIjY="}]},"maintainers":[{"email":"github@tixz.dk","name":"emilbay"},{"email":"github@tixz.dk","name":"emilbayes"}],"_npmUser":{"name":"emilbayes","email":"github@tixz.dk"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/secure-shuffle_2.0.0_1590597396971_0.6716590298283382"},"_hasShrinkwrap":false}},"readme":"# `secure-shuffle`\n\n> Shuffle an array using `secure-random-uniform` as the RNG\n\n## Install\n\n```sh\nnpm install secure-shuffle\n```\n\n## Usage\n\nNote that this module **mutates** the passed array, as you can always `.slice(0)` to get a \"cheap\" copy:\n\n```js\nconst sshuffle = require('secure-shuffle')\n\nconst arr = [1, 2, 3, 4, 5, 6, 7, 8, 9]\n\nconst sarr = sshuffle(arr.slice(0)) // sarr is now a shuffled copy of arr\n\nsshuffle(arr) // arr is now shuffled\n```\n\n## API\n\n###`secureShuffle(arr)`\n\nTakes an array-like structure (eg. Buffer) and shuffles it.\nNote that the original will be mutated for performance reasons.\nYou might want to copy the structure before passing it, depending on your use-case.\n\nAs a convenience, the passed structure will be returned.\n\n## License\n\n[ISC](LICENSE.md)\n","maintainers":[{"email":"github@tixz.dk","name":"emilbay"},{"email":"github@tixz.dk","name":"emilbayes"}],"time":{"modified":"2022-06-26T17:14:30.322Z","created":"2016-09-10T02:15:02.271Z","1.0.0":"2016-09-10T02:15:02.271Z","1.1.0":"2016-10-13T14:04:31.821Z","1.2.0":"2018-01-05T12:32:36.578Z","2.0.0":"2020-05-27T16:36:37.570Z"},"homepage":"https://github.com/emilbayes/secure-shuffle#readme","keywords":["secure","shuffle","crypto","mix","random","buffer"],"repository":{"type":"git","url":"git+ssh://git@github.com/emilbayes/secure-shuffle.git"},"author":{"name":"Emil Bay","email":"github@tixz.dk"},"bugs":{"url":"https://github.com/emilbayes/secure-shuffle/issues"},"license":"ISC","readmeFilename":"README.md","users":{"emilbay":true}}