1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
Oinktube/node_modules/randombytes
2023-02-17 15:04:26 -03:00
..
.travis.yml Updates node modules 2023-02-17 15:04:26 -03:00
.zuul.yml Updates node modules 2023-02-17 15:04:26 -03:00
browser.js Updates node modules 2023-02-17 15:04:26 -03:00
index.js Updates node modules 2023-02-17 15:04:26 -03:00
LICENSE Updates node modules 2023-02-17 15:04:26 -03:00
package.json Updates node modules 2023-02-17 15:04:26 -03:00
README.md Updates node modules 2023-02-17 15:04:26 -03:00
test.js Updates node modules 2023-02-17 15:04:26 -03:00

randombytes

Version Build Status

randombytes from node that works in the browser. In node you just get crypto.randomBytes, but in the browser it uses .crypto/msCrypto.getRandomValues

var randomBytes = require('randombytes');
randomBytes(16);//get 16 random bytes
randomBytes(16, function (err, resp) {
  // resp is 16 random bytes
});