secure-random-uint
v4.0.1
Published
Generate a cryptographically secure uint
Downloads
9
Readme
secure-random-uint
Generate a cryptographically secure uint.
Example
var secureRandomUint = require('secure-random-uint');
secureRandomUint();
// => 4
Installation
$ npm install secure-random-uint
API
var secureRandomUint = require('secure-random-uint');
secureRandomUint()
Returns a cryptographically secure Number uint. Uses get-random-values, so an Error will be thrown if there is no secure random number generator available.