1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/randombytes
詹力 1a19ec897f 删除无关模块 2024-01-16 21:26:16 +08:00
..
.travis.yml i4 2023-12-18 13:12:25 +08:00
.zuul.yml i4 2023-12-18 13:12:25 +08:00
LICENSE i4 2023-12-18 13:12:25 +08:00
README.md i4 2023-12-18 13:12:25 +08:00
browser.js i4 2023-12-18 13:12:25 +08:00
index.js i4 2023-12-18 13:12:25 +08:00
package.json 删除无关模块 2024-01-16 21:26:16 +08:00
test.js i4 2023-12-18 13:12:25 +08:00

README.md

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