random-48
v0.0.4
Published
nativie random number generator
Downloads
1
Readme
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 = require('random-48');
const random = Generate.random();
// 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.