您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
nitowa 1dae68b1c7 init 2 年前
..
.travis.yml init 2 年前
.zuul.yml init 2 年前
LICENSE init 2 年前
README.md init 2 年前
browser.js init 2 年前
index.js init 2 年前
package.json init 2 年前
test.js init 2 年前

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