zhangqiOMG e15bff017f 代码上传 2 роки тому
..
.travis.yml e15bff017f 代码上传 2 роки тому
.zuul.yml e15bff017f 代码上传 2 роки тому
LICENSE e15bff017f 代码上传 2 роки тому
README.md e15bff017f 代码上传 2 роки тому
browser.js e15bff017f 代码上传 2 роки тому
index.js e15bff017f 代码上传 2 роки тому
package.json e15bff017f 代码上传 2 роки тому
test.js e15bff017f 代码上传 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
});