fleet-docs/node_modules/randombytes
divya-mohan0209 9de94a264c Initial commit 2022-09-22 09:54:31 +05:30
..
.travis.yml Initial commit 2022-09-22 09:54:31 +05:30
.zuul.yml Initial commit 2022-09-22 09:54:31 +05:30
LICENSE Initial commit 2022-09-22 09:54:31 +05:30
README.md Initial commit 2022-09-22 09:54:31 +05:30
browser.js Initial commit 2022-09-22 09:54:31 +05:30
index.js Initial commit 2022-09-22 09:54:31 +05:30
package.json Initial commit 2022-09-22 09:54:31 +05:30
test.js Initial commit 2022-09-22 09:54:31 +05:30

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