
Security News
Node.js Moves Toward Stable TypeScript Support with Amaro 1.0
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
arc4random
Advanced tools
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 1 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
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.