# @walletconnect/randombytes

> Isomorphic Library for Random Bytes

Latest version **1.1.0** (published 2025-01-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @walletconnect/randombytes
pnpm add @walletconnect/randombytes
yarn add @walletconnect/randombytes
bun add @walletconnect/randombytes
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2025-01-24 |
| First published | 2021-07-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 100.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 132 |
| Author | WalletConnect, Inc. |
| Maintainers | pedrouid, magiziz, bkrem, nachosan, devceline, gancho_walletconnect, cyberdrk, zoruka, lukaisailovic, enesozturk, chris13524, huxwell |
| Keywords | crypto, cryptography, isomorphic, random, bytes |

## Links

- npm: https://www.npmjs.com/package/@walletconnect/randombytes
- Repository: https://github.com/walletconnect/walletconnect-utils
- Issues: https://github.com/walletconnect/walletconnect-utils/issues
- npm.io page: https://npm.io/package/@walletconnect/randombytes

## Dependencies (4)

- [tslib](https://npm.io/package/tslib.md) 1.14.1
- [@noble/hashes](https://npm.io/package/@noble/hashes.md) 1.7.0
- [@walletconnect/encoding](https://npm.io/package/@walletconnect/encoding.md) ^1.0.2
- [@walletconnect/environment](https://npm.io/package/@walletconnect/environment.md) ^1.0.1

## 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

- 1.1.0 (latest) — 2025-01-24
- 1.0.3-canary-bnl-1 (canary) — 2025-01-07
- 1.0.0-beta.1 (beta) — 2021-07-26
- 1.0.3 — 2022-11-25
- 1.0.2 — 2022-03-14
- 1.0.1 — 2021-07-29
- 1.0.0 — 2021-07-28

## README

# iso-random [![npm version](https://badge.fury.io/js/%40pedrouid%2Fiso-random.svg)](https://badge.fury.io/js/%40pedrouid%2Fiso-random)

Isomorphic Library for Random Bytes

## Description

This library supports random byte generation through native NodeJS and Browser APIs when available and fallbacks to vanilla javascript are already provided.

## Usage

### RandomBytes

```typescript
import * as isoRandom from 'iso-random';

const length = 32;
const key = isoRandom.randomBytes(length);

// key.length === length
```

## React-Native Support

This library is intended for use in a Browser or NodeJS environment, however it is possible to use in a React-Native environment if NodeJS modules are polyfilled with `react-native-crypto`, read more [here](https://github.com/tradle/react-native-crypto).

## License

[MIT License](LICENSE.md)

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