4.0.1 • Published 2 years ago
secure-random-octet v4.0.1
secure-random-octet
Generate a cryptographically secure octet.
Example
var secureRandomOctet = require('secure-random-octet');
secureRandomOctet();
// => 4Installation
$ npm install secure-random-octetAPI
var secureRandomOctet = require('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.