tree: ecf9931d5929a4be9f4a5886f108fb50079375ae [path history] [tgz]
  1. .travis.yml
  2. .zuul.yml
  3. browser.js
  4. index.js
  5. LICENSE
  6. package.json
  7. README.md
  8. test.js
node_modules/randombytes/README.md

randombytes

Version Build Status

randombytes from node that works in the browser. In node you just get crypto.randomBytes, but in the browser it uses .crypto/msCrypto.getRandomValues

var randomBytes = require('randombytes');
randomBytes(16);//get 16 random bytes
randomBytes(16, function (err, resp) {
  // resp is 16 random bytes
});