liangjiahao 8f813121f8 添加查看按钮的窗口 il y a 3 ans
..
.travis.yml fcedc92fa0 完成了基础 il y a 3 ans
.zuul.yml fcedc92fa0 完成了基础 il y a 3 ans
LICENSE fcedc92fa0 完成了基础 il y a 3 ans
README.md fcedc92fa0 完成了基础 il y a 3 ans
browser.js fcedc92fa0 完成了基础 il y a 3 ans
index.js fcedc92fa0 完成了基础 il y a 3 ans
package.json 8f813121f8 添加查看按钮的窗口 il y a 3 ans
test.js fcedc92fa0 完成了基础 il y a 3 ans

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