@jwaterfaucett/random_byte_sequence
v0.0.2
Published
Generate high quality random byte sequences in the browser and on the server
Downloads
17
Readme
Random Byte Sequence
This library attempts to generate high quality random byte sequences if the JS environment allows it. However, if everything fails a fallback
to yer good'ol Math.random() is used.
This works in browsers and on the server.
Example Usage
var rbs = require("@jwaterfaucett/random_byte_sequence");
// generate 16 random bytes
var bytes = rbs(16);
