Icard/angular-clarity-master(work.../node_modules/randombytes
realSnehal 336a6a07d0 frnt 2024-07-16 20:53:22 +05:30
..
.travis.yml frnt 2024-07-16 20:53:22 +05:30
.zuul.yml frnt 2024-07-16 20:53:22 +05:30
LICENSE frnt 2024-07-16 20:53:22 +05:30
README.md frnt 2024-07-16 20:53:22 +05:30
browser.js frnt 2024-07-16 20:53:22 +05:30
index.js frnt 2024-07-16 20:53:22 +05:30
package.json frnt 2024-07-16 20:53:22 +05:30
test.js frnt 2024-07-16 20:53:22 +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
});