xiebaomin 213d86429b updated пре 1 година
..
.travis.yml 213d86429b updated пре 1 година
.zuul.yml 213d86429b updated пре 1 година
LICENSE 213d86429b updated пре 1 година
README.md 213d86429b updated пре 1 година
browser.js 213d86429b updated пре 1 година
index.js 213d86429b updated пре 1 година
package.json 213d86429b updated пре 1 година
test.js 213d86429b updated пре 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
});