secure-random-uint

4.0.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i secure-random-uint

Weekly Downloads

0

Version

4.0.1

License

MIT

Unpacked Size

3 kB

Total Files

4

Last publish

Collaborators

  • kenan