randomfill (1.0.4)

Published 2026-02-24 14:03:51 +00:00 by atheaadmin

Installation

registry=
npm install randomfill@1.0.4
"randomfill": "1.0.4"

About this package

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

Dependencies

Dependencies

ID Version
randombytes ^2.0.5
safe-buffer ^5.1.0

Development Dependencies

ID Version
phantomjs ^1.9.9
standard ^10.0.2
tap-spec ^2.1.2
tape ^4.6.3
zuul ^3.7.2

Keywords

crypto random
Details
npm
2026-02-24 14:03:51 +00:00
0
MIT
latest
2.7 KiB
Assets (1)
Versions (1) View all
1.0.4 2026-02-24