tree: 504de73e61ffb5cf7a269cd35a9c96adf06f16ec [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
third_party/devtools/node_modules/randomfill/README.md

randomfill

Version

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

var randomFill = require('randomfill');
var buf
randomFill.randomFillSync(16);//get 16 random bytes
randomFill.randomFill(16, function (err, resp) {
  // resp is 16 random bytes
});