provider/node_modules/randombytes
Nik Dement'ev b2743b6469
fix: update lint
2020-11-06 14:38:38 +03:00
..
.travis.yml fix: update lint 2020-11-06 14:38:38 +03:00
.zuul.yml fix: update lint 2020-11-06 14:38:38 +03:00
LICENSE fix: update lint 2020-11-06 14:38:38 +03:00
README.md fix: update lint 2020-11-06 14:38:38 +03:00
browser.js fix: update lint 2020-11-06 14:38:38 +03:00
index.js fix: update lint 2020-11-06 14:38:38 +03:00
package.json fix: update lint 2020-11-06 14:38:38 +03:00
test.js fix: update lint 2020-11-06 14:38:38 +03:00

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
});