tree: d9a0f500fa94c92ce74c9ff00ae2d17ac77eeacf [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
src/third_party/devtools/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
});