Zhouyiping 5a7c95461a first commit há 3 dias atrás
..
.travis.yml 5a7c95461a first commit há 3 dias atrás
.zuul.yml 5a7c95461a first commit há 3 dias atrás
LICENSE 5a7c95461a first commit há 3 dias atrás
README.md 5a7c95461a first commit há 3 dias atrás
browser.js 5a7c95461a first commit há 3 dias atrás
index.js 5a7c95461a first commit há 3 dias atrás
package.json 5a7c95461a first commit há 3 dias atrás
test.js 5a7c95461a first commit há 3 dias atrás

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