0.0.2 • Published 7 years ago

@jwaterfaucett/random_byte_sequence v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

Build Status

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);