Feuerwehr-eppingen/node_modules/randomfill
2020-06-04 13:20:10 +02:00
..
.travis.yml Umzug auf Synology NAS 2020-06-04 13:20:10 +02:00
.zuul.yml Umzug auf Synology NAS 2020-06-04 13:20:10 +02:00
browser.js Umzug auf Synology NAS 2020-06-04 13:20:10 +02:00
index.js Umzug auf Synology NAS 2020-06-04 13:20:10 +02:00
LICENSE Umzug auf Synology NAS 2020-06-04 13:20:10 +02:00
package.json Umzug auf Synology NAS 2020-06-04 13:20:10 +02:00
README.md Umzug auf Synology NAS 2020-06-04 13:20:10 +02:00
test.js Umzug auf Synology NAS 2020-06-04 13:20:10 +02:00

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