randombytes

random bytes from browserify stand alone

MIT 9 个版本
安装
npm install randombytes
yarn add randombytes
pnpm add randombytes
bun add randombytes
README

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
});
版本列表
2.1.0 2019-02-19
2.0.6 2018-01-10
2.0.5 2017-06-07
2.0.4 2017-06-02
2.0.3 2016-03-02
2.0.2 2016-01-13
2.0.1 2015-01-22
2.0.0 2015-01-18
1.0.0 2015-01-15