{"_id":"random-seed-generator","_rev":"7-68dde925c64cac30da60836ab5a58597","time":{"0.0.1":"2019-01-02T13:39:19.962Z","0.0.2":"2019-01-02T13:39:19.962Z","0.0.3":"2019-01-02T13:39:19.962Z","0.0.4":"2019-01-02T13:39:19.962Z","0.0.5":"2019-01-02T13:39:19.962Z","created":"2019-01-03T15:25:27.636Z","0.0.7":"2019-01-03T15:25:27.756Z","modified":"2022-05-14T02:47:21.716Z"},"name":"random-seed-generator","dist-tags":{"latest":"0.0.7"},"versions":{"0.0.7":{"name":"random-seed-generator","version":"0.0.7","description":"Random generator for strings, secrets and numbers – with built in crypto module and seed generation for predictable outputs","main":"lib/index.js","browser":"dist/index.min.js","scripts":{"test":"jest","test:clear-cache":"jest --clearCache","coverage":"npm test --coverage","postcoverage":"opn coverage/lcov-report/index.html","clean":"rimraf dist","build-browser":"browserify index.js  | uglifyjs > ./dist/index.js","build-node":"mkdir -p ./dist && cp index.js ./lib/index.js","prebuild":"npm run clean","build":"npm run build-node && npm run build-browser","preversion":"npm test && npm run build","version":"standard-changelog && git add CHANGELOG.md","postpublish":"git push random-seed-generator master --follow-tags"},"author":{"name":"ric0","email":"e.cerroni@gmail.com","url":"https://github.com/ecerroni"},"license":"BSD-2-Clause","dependencies":{},"devDependencies":{"browserify":"16.2.3","jest":"23.6.0","standard-changelog":"2.0.6"},"repository":{"type":"git","url":"git+https://github.com/ecerroni/random-seed-generator.git"},"keywords":["random","meteor","crypto","api","key","generator","api","keys","tokens","UUID","strings","numbers","passwords","secrets","seed"],"bugs":{"url":"https://github.com/ecerroni/random-seed-generator/issues"},"homepage":"https://github.com/ecerroni/random-seed-generator","gitHead":"2e0a894f44736091bea10f7744520901c190598f","_id":"random-seed-generator@0.0.7","_npmVersion":"5.5.1","_nodeVersion":"9.1.0","_npmUser":{"name":"ric0","email":"acc@imap.cc"},"dist":{"integrity":"sha512-HxeFSaO3J0GSAkbZRNAeCK4R4fAaMZxHgZ1p+updA1ce4RDuhozpKH5PES8Rc9AejMyvZo+0yVFBnd9uWlEk3w==","shasum":"0b3d308a9e66e03c4dcbd545630e45357a259ac0","tarball":"https://registry.npmjs.org/random-seed-generator/-/random-seed-generator-0.0.7.tgz","fileCount":5,"unpackedSize":440169,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcLiloCRA9TVsSAnZWagAA6FIP/0XCZkFni/23mG23yM04\nFEL5Q9yitOB6S5Xx6j++c1vOd4G8O2+UprZ6RKPcot/+u6j2u+ZhqrDeRBp7\ng960uUMIDkYw75AMprXg/ngXrvQbUZA4ptlVHnFhUlsYl8ifHF0JlDVeGmzm\nA/FqRWfmohfhTA04kseH0WeM+vsVnkhA6C5ySMxfqmUKY+PDI/igE0NgTAtJ\nWcxiKyFE2U/UDY82Jc5K8/YY4yf6juzVngOTj1Hx1tcxJOXWrUjR5CH90ME7\nTjAv1OJg/OeaegEM5Q5DiMqlWnmzpomzzeI6sAjmhsw2Axvl4ENMXZoAXk5F\nHAR8pd9roALUPugEwtWoXrC/HbA7/wybqjBN7f6sfrbY5l+gYCPtFe7gKeZd\ncOW2FDDflJSPI9vfIXkS9paC1kvt9tVCR+UrF4T/iRe+UwKC5NVT2BkI8WIw\naFz+ikU0+unwHstT6iRiFus4LsUcQcxYOO6JCrKLPTf2dS5iKZkVqT5o16ID\nlmnvImH37rX4ngxDoNR3HxRPBGLrDSYB0lM+yfXkbDkduvL5OSE9al4G9sLy\n7O7plfD4xY4m0/9X+yEXjbCmgySGsF7FlGPRyik+YLKVxRP1YRdqLfSVRn8p\nbc7omqXQ6EGWUleyhuyMt944hs9ltdZY3u/LIWzu2hsCHB6dFQuI/oQeP1to\nvWbV\r\n=gzMQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHEP1fgN9ioWRRxiCS3kY9ILZxHxJjRvga0gVeMnSaGFAiBfkl0pTZfCbENOU4JKKWyrvCiAmEcEDpAIGI0OIsYXxg=="}]},"maintainers":[{"name":"ric0","email":"acc@imap.cc"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-seed-generator_0.0.7_1546529127637_0.23389665803648008"},"_hasShrinkwrap":false}},"maintainers":[{"name":"ric0","email":"acc@imap.cc"}],"description":"Random generator for strings, secrets and numbers – with built in crypto module and seed generation for predictable outputs","homepage":"https://github.com/ecerroni/random-seed-generator","keywords":["random","meteor","crypto","api","key","generator","api","keys","tokens","UUID","strings","numbers","passwords","secrets","seed"],"repository":{"type":"git","url":"git+https://github.com/ecerroni/random-seed-generator.git"},"author":{"name":"ric0","email":"e.cerroni@gmail.com","url":"https://github.com/ecerroni"},"bugs":{"url":"https://github.com/ecerroni/random-seed-generator/issues"},"license":"BSD-2-Clause","readme":"# random-seed-generator\n[![NPM version](https://img.shields.io/npm/v/random-seed-generator.svg?style=flat-square)](https://npmjs.org/package/random-seed-generator)\n[![Build Status](https://img.shields.io/travis/ecerroni/random-seed-generator/master.svg?style=flat-square)](https://travis-ci.org/ecerroni/random-seed-generator) [![Coverage Status](https://img.shields.io/codecov/c/github/ecerroni/random-seed-generator/master.svg?style=flat-square)](https://codecov.io/gh/ecerroni/random-seed-generator/branch/master)\n![Dependencies](https://img.shields.io/librariesio/dependents/npm/random-seed-generator.svg)\n![minified + gzip](https://img.shields.io/bundlephobia/minzip/random-seed-generator.svg)\n\n\n\n```\n  Random = require('random-seed-generator');\n```\n\nOR\n\n```\n  import Random from 'random-seed-generator';\n```\n\nThe random package provides several functions for generating random numbers, general strings and secrets. It uses a cryptographically strong pseudorandom number generator when possible, but falls back to a weaker random number generator when cryptographically strong randomness is not available (on older browsers or on servers that don't have enough entropy to seed the cryptographically strong generator).\n\n* `Random.number(options)` | ex. `Random.number({ length: 11 })`\n\n```\n// defaults\nlength: 8 // maximum length is 19\n```\n\nReturns a unique number, such as 87845349092, that is likely to be pretty unique.\n\n\n* `Random.string(options)` | ex. `Random.string({ length: 19, pool: 'abcdefghilmnopqrstuvxyz' })`\n\n```\n// defaults\nlength: 17\npool: 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()[]'\n```\nReturns a unique identifier, such as \"Wb#Jo^YT4poj[G9AJ\", that is likely to be unique in the whole world.\n\n* `Random.secret(options)` | ex. `Random.secret({ length: 47, pool: 'abcdefghilmnopqrstuvxyz' })`\n\nReturns a random string of printable characters with 6 bits of entropy per character such as \"uko0--9lslEQkUA5_r1cWHqPv7JLm2Lj8Bikrwk1wWr\". The optional argument object can specifies the length of the secret string and defaults to 43 characters, or 256 bits of entropy, and the pool of base64 chars that defaults to 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_'. Use Random.secret for security-critical secrets that are intended for machine, rather than human, consumption.\n\n* `Random.createWithSeeds('customSeed')`\nGenerates predictable outputs that can lead to predictability of the numbers, strings or secrets generated it using a seed (such as a random string, a process ID, the system time, etc.).\nExample:\n```\nconst firstValue = Random.createWithSeeds('customSeed').string({ length: 13, pool: 'dfdfdfasdfaffadfa11hjkhjksefdhjlf8907234768q3e478efryui^&^*&^&*&*' })\n\nconst secondValue = Random.createWithSeeds('customSeed').string({ length: 13, pool: 'dfdfdfasdfaffadfa11hjkhjksefdhjlf8907234768q3e478efryui^&^*&^&*&*' })\n\nconsole.log(firstValue, secondValue, firstValue === secondValue) // output: 8^ffk8f9af1&e 8^ffk8f9af1&e true\n```\n\n* `Random.fraction()`\nReturns a number between 0 and 1, like Math.random.\n\n* `Random.choice(arrayOrString)`\nReturns a random element of the given array or string.\n\n* `Random.hexString(n)`\nReturns a random string of n hexadecimal digits.\n\n### Thanks to:\nThis repo is a fork of https://github.com/dVelopment/meteor-random, a Meteor's Random Package, Stripped for Straight Node. It is mostly based on the original code with few modifications and additions. For more information see [Meteor's Random Docs](http://docs.meteor.com/#/full/random)\n","readmeFilename":"README.md"}