4.0.1 • Published 7 months ago

secure-random-uint v4.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 months ago

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.

4.0.1

7 months ago

4.0.0

8 months ago

3.0.1

1 year ago

3.0.0

2 years ago

1.0.1

3 years ago

2.0.0

3 years ago

1.0.0

10 years ago