parcoursup/node_modules/randombytes
lalBi94 7bc56c09b5 $
2023-03-05 13:23:23 +01:00
..
.travis.yml $ 2023-03-05 13:23:23 +01:00
.zuul.yml $ 2023-03-05 13:23:23 +01:00
browser.js $ 2023-03-05 13:23:23 +01:00
index.js $ 2023-03-05 13:23:23 +01:00
LICENSE $ 2023-03-05 13:23:23 +01:00
package.json $ 2023-03-05 13:23:23 +01:00
README.md $ 2023-03-05 13:23:23 +01:00
test.js $ 2023-03-05 13:23:23 +01: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
});