# seed-bytes

> seedable bytes

Latest version **0.0.4** (published 2019-05-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install seed-bytes
pnpm add seed-bytes
yarn add seed-bytes
bun add seed-bytes
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2019-05-14 |
| First published | 2018-01-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Noah Anabiik Schwarz |
| Maintainers | chiefbiiko |
| Keywords | cipher, seed-bytes, xor |

## Links

- npm: https://www.npmjs.com/package/seed-bytes
- Repository: https://github.com/chiefbiiko/seed-bytes
- Homepage: https://github.com/chiefbiiko/seed-bytes#readme
- Issues: https://github.com/chiefbiiko/seed-bytes/issues
- npm.io page: https://npm.io/package/seed-bytes

## Dependencies (1)

- [seedrandom](https://npm.io/package/seedrandom.md) ^2.4.3

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 0.0.4 (latest) — 2019-05-14
- 0.0.2 — 2018-02-02
- 0.0.1 — 2018-01-30
- 0.0.0 — 2018-01-30

## README

# seed-bytes

[![build status](http://img.shields.io/travis/chiefbiiko/seed-bytes.svg?style=flat)](http://travis-ci.org/chiefbiiko/seed-bytes) [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/chiefbiiko/seed-bytes?branch=master&svg=true)](https://ci.appveyor.com/project/chiefbiiko/seed-bytes)

***

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

***

## Get it!

```
npm install --save seed-bytes
```

***

## Usage

``` js
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`](https://github.com/davidbau/seedrandom#other-fast-prng-algorithms) 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](./license.md)

---
_Source: https://npm.io/package/seed-bytes · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
