# iso-read-random

> read from /dev/urandom or another random number source device

Latest version **1.0.0** (published 2020-09-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install iso-read-random
pnpm add iso-read-random
yarn add iso-read-random
bun add iso-read-random
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-09-21 |
| First published | 2020-09-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kyle E. Mitchell |
| Maintainers | isysd |

## Links

- npm: https://www.npmjs.com/package/iso-read-random
- Repository: https://github.com/isysd-mirror/iso-read-random
- Homepage: https://github.com/isysd-mirror/iso-read-random/
- Issues: https://github.com/isysd-mirror/iso-read-random/issues
- npm.io page: https://npm.io/package/iso-read-random

## Dependencies (1)

- [iso-fs](https://npm.io/package/iso-fs.md) ../iso-fs

## Recent versions

- 1.0.0 (latest) — 2020-09-21

## README

```javascript
var readRandom = require('read-random')
var assert = require('assert')

readRandom(32, function (error, buffer) {
  assert.ifError(error)
  assert.equal(buffer.length, 32)
})

readRandom({
  bytes: 512,
  device: '/dev/random'
}, function (error, buffer) {
  assert.equal(error.message, 'could not read enough bytes')
  assert.equal(error.requested, 512)
  assert(error.read < 512)
})
```

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