yuanhao b574408fd7 first commit %!s(int64=3) %!d(string=hai) anos
..
.travis.yml b574408fd7 first commit %!s(int64=3) %!d(string=hai) anos
.zuul.yml b574408fd7 first commit %!s(int64=3) %!d(string=hai) anos
LICENSE b574408fd7 first commit %!s(int64=3) %!d(string=hai) anos
README.md b574408fd7 first commit %!s(int64=3) %!d(string=hai) anos
browser.js b574408fd7 first commit %!s(int64=3) %!d(string=hai) anos
index.js b574408fd7 first commit %!s(int64=3) %!d(string=hai) anos
package.json b574408fd7 first commit %!s(int64=3) %!d(string=hai) anos
test.js b574408fd7 first commit %!s(int64=3) %!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
});