Files
w4rpservices/node_modules/randombytes
..
2018-10-27 03:51:47 -05:00
2018-10-27 03:51:47 -05:00
2019-03-07 00:20:34 -06:00
2018-10-27 03:51:47 -05:00
2018-10-27 03:51:47 -05:00
2019-03-07 00:20:34 -06:00
2018-10-27 03:51:47 -05:00
2019-03-07 00:20:34 -06:00

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