
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
arc4random
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Native bindings for the arc4random()
family of funcitons:
arc4random()
arc4random_buf(buf, nbytes)
arc4random_uniform(upper_bound)
The latest and greatest version of this software is available through npm.
npm install arc4random
const rng = require('arc4random');
// returns an integer in the range [0, 2^32)
const randomNumber = rng.arc4random();
// stores nbytes integers in the given buffer.
// each byte is an integer in the range [0, 256)
const nbytes = 255;
const buf = Buffer.alloc(nbytes);
rng.arc4random_buf(buf, nbytes);
// returns an integer in the range [0, upper_bound)
const anotherRandomNumber = rng.arc4random_uniform(16);
See LICENSE.md
FAQs
Native bindings for the arc4random() family of funcitons.
The npm package arc4random receives a total of 26 weekly downloads. As such, arc4random popularity was classified as not popular.
We found that arc4random demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.