@jwaterfaucett/random_byte_sequence

0.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @jwaterfaucett/random_byte_sequence

Weekly Downloads

5

Version

0.0.2

License

MIT

Last publish

Collaborators

  • jwaterfaucett