randomfill

1.0.4last stable release 7 years ago
Complexity Score
Low
Open Issues
N/A
Dependent Projects
148
Weekly Downloadsglobal
7,520,594

Keywords

License

  • MIT
    • Yesattribution
    • Permissivelinking
    • Permissivedistribution
    • Permissivemodification
    • Nopatent grant
    • Yesprivate use
    • Permissivesublicensing
    • Notrademark grant

Downloads

Readme

randomfill

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

CVE IssuesActive
0
Scorecards Score
3.90
Test Coverage
No Data
Follows Semver
Yes
Github Stars
9
Dependenciestotal
2
DependenciesOutdated
0
DependenciesDeprecated
0
Threat Modelling
No
Repo Audits
No

Learn how to distribute randomfill in your own private NPM registry

npm config set registry  https://npm.cloudsmith.com/owner/repo
Processing...
Done
npm install randomfill
Processing...
Done

5 Releases

NPM on Cloudsmith

Getting started with NPM on Cloudsmith is fast and easy.