zhangyun 5d7feff721 app框架搭建 2/18 il y a 3 ans
..
.travis.yml 5d7feff721 app框架搭建 2/18 il y a 3 ans
.zuul.yml 5d7feff721 app框架搭建 2/18 il y a 3 ans
LICENSE 5d7feff721 app框架搭建 2/18 il y a 3 ans
README.md 5d7feff721 app框架搭建 2/18 il y a 3 ans
browser.js 5d7feff721 app框架搭建 2/18 il y a 3 ans
index.js 5d7feff721 app框架搭建 2/18 il y a 3 ans
package.json 5d7feff721 app框架搭建 2/18 il y a 3 ans
test.js 5d7feff721 app框架搭建 2/18 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
});