MIF_E31222707/node_modules/randombytes
adeliaala 0d288a48b9 done 2025-07-15 13:57:20 +07:00
..
.travis.yml done 2025-07-15 13:57:20 +07:00
.zuul.yml done 2025-07-15 13:57:20 +07:00
LICENSE done 2025-07-15 13:57:20 +07:00
README.md done 2025-07-15 13:57:20 +07:00
browser.js done 2025-07-15 13:57:20 +07:00
index.js done 2025-07-15 13:57:20 +07:00
package.json done 2025-07-15 13:57:20 +07:00
test.js done 2025-07-15 13:57:20 +07: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
});