random-48
random-48 is a Node.js binding for Windows CryptGenRandom function
Installing
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
Dependencies
- Node.JS >= 4.0.0
- CMake >= 3.2
- A C++ compatible compiler
API
random(void)
const Generate = ;const random = Generate;// random now contains a random 48 bit integer
Todo
- Make cross-platform
- Allow user options?
- Improve tests
License
rand is licensed under BSD-3-Clause.