secure-random-uint
v7.0.0
Published
Generate a cryptographically secure uint
Readme
secure-random-uint
Generate a cryptographically secure uint.
Example
import { secureRandomUint } from 'secure-random-uint';
secureRandomUint();
// => 4Installation
$ pnpm add secure-random-uintAPI
import { secureRandomUint } from '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.
