yrik 0fb20a58e3 提交 %!s(int64=4) %!d(string=hai) anos
..
.travis.yml eec7f449c9 first commit %!s(int64=4) %!d(string=hai) anos
.zuul.yml eec7f449c9 first commit %!s(int64=4) %!d(string=hai) anos
LICENSE eec7f449c9 first commit %!s(int64=4) %!d(string=hai) anos
README.md eec7f449c9 first commit %!s(int64=4) %!d(string=hai) anos
browser.js eec7f449c9 first commit %!s(int64=4) %!d(string=hai) anos
index.js eec7f449c9 first commit %!s(int64=4) %!d(string=hai) anos
package.json 0fb20a58e3 提交 %!s(int64=4) %!d(string=hai) anos
test.js eec7f449c9 first commit %!s(int64=4) %!d(string=hai) anos

README.md

randomfill

Version

randomfill from node that works in the browser. In node you just get crypto.randomBytes, but in the browser it uses .crypto/msCrypto.getRandomValues

var randomFill = require('randomfill');
var buf
randomFill.randomFillSync(16);//get 16 random bytes
randomFill.randomFill(16, function (err, resp) {
  // resp is 16 random bytes
});