secure-random-octet
v6.0.1
Published
Generate a cryptographically secure octet
Readme
secure-random-octet
Generate a cryptographically secure octet.
Example
import { secureRandomOctet } from 'secure-random-octet';
secureRandomOctet();
// => 4Installation
$ npm install secure-random-octetAPI
import { secureRandomOctet } from 'secure-random-octet';secureRandomOctet()
Returns a cryptographically secure Number octet. Uses get-random-values, so an Error will be thrown if there is no secure random number generator available.
