Gazebo_simulation-Frontend/node_modules/randomfill
Riddhi Dave c586e2ed33 session update with django backend 2021-02-25 10:57:52 -05:00
..
.travis.yml React files 2020-12-21 10:29:31 -05:00
.zuul.yml React files 2020-12-21 10:29:31 -05:00
LICENSE React files 2020-12-21 10:29:31 -05:00
README.md React files 2020-12-21 10:29:31 -05:00
browser.js React files 2020-12-21 10:29:31 -05:00
index.js React files 2020-12-21 10:29:31 -05:00
package.json session update with django backend 2021-02-25 10:57:52 -05:00
test.js React files 2020-12-21 10:29:31 -05: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
});