random-48 is a Node.js binding for Windows CryptGenRandom function
You can install random-48 as a dependency of your project using NPM like so, provided you have met the dependencies listed below.
> npm install --save random-48
- Node.JS >= 4.0.0
- CMake >= 3.2
- A C++ compatible compiler
const Generate = require('random-48');
const random = Generate.random();
// random now contains a random 48 bit integer
- Make cross-platform
- Allow user options?
- Improve tests
rand is licensed under BSD-3-Clause.