seed-bytes

0.0.4 • Public • Published

seed-bytes

build status AppVeyor Build Status


A seedable random byte generator. The algorithms available are not cryptographically secure!


Get it!

npm install --save seed-bytes

Usage

var seed = require('seed-bytes')
var next = seed('sesame open')
 
next() // a single byte
next(419) // n bytes at once, as a buffer

API

var next = seed(init[, algo])

Create a new random byte generator. init can be of any type. Set the algorithm for the internal random number generator with algo, defaults to 'alea'. Check out seedrandom for a list of supported algorithms. None of those are cryptographically secure.

next([n])

Get the next byte or the next n bytes in a buffer.


License

MIT

Readme

Keywords

Package Sidebar

Install

npm i seed-bytes

Weekly Downloads

1

Version

0.0.4

License

MIT

Unpacked Size

4.31 kB

Total Files

7

Last publish

Collaborators

  • chiefbiiko