katoikia-app/web-ui/web-react/node_modules/randomfill
Maria Sanchez 5abf040b42 fix web ui template 2022-07-05 22:15:11 -06:00
..
.travis.yml fix web ui template 2022-07-05 22:15:11 -06:00
.zuul.yml fix web ui template 2022-07-05 22:15:11 -06:00
LICENSE fix web ui template 2022-07-05 22:15:11 -06:00
README.md fix web ui template 2022-07-05 22:15:11 -06:00
browser.js fix web ui template 2022-07-05 22:15:11 -06:00
index.js fix web ui template 2022-07-05 22:15:11 -06:00
package.json fix web ui template 2022-07-05 22:15:11 -06:00
test.js fix web ui template 2022-07-05 22:15:11 -06:00

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