Frontend/25_01_07/mai/node_modules/randombytes
szabomarton 7f4a15b9c3 asd
2025-01-28 11:38:27 +01:00
..
.travis.yml asd 2025-01-28 11:38:27 +01:00
.zuul.yml asd 2025-01-28 11:38:27 +01:00
browser.js asd 2025-01-28 11:38:27 +01:00
index.js asd 2025-01-28 11:38:27 +01:00
LICENSE asd 2025-01-28 11:38:27 +01:00
package.json asd 2025-01-28 11:38:27 +01:00
README.md asd 2025-01-28 11:38:27 +01:00
test.js asd 2025-01-28 11:38:27 +01: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
});