zlwu dd667101ef first commit 1 년 전
..
.travis.yml dd667101ef first commit 1 년 전
.zuul.yml dd667101ef first commit 1 년 전
LICENSE dd667101ef first commit 1 년 전
README.md dd667101ef first commit 1 년 전
browser.js dd667101ef first commit 1 년 전
index.js dd667101ef first commit 1 년 전
package.json dd667101ef first commit 1 년 전
test.js dd667101ef first commit 1 년 전

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