@walletconnect/randombytes
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

iso-random npm version

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

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.

License

MIT License

Package Sidebar

Install

npm i @walletconnect/randombytes

Weekly Downloads

19,679

Version

1.0.3

License

MIT

Unpacked Size

253 kB

Total Files

30

Last publish

Collaborators

  • zoruka
  • magiziz
  • enesozturk
  • lukaisailovic
  • cyberdrk
  • nachosan
  • huxwell
  • chris13524
  • devceline
  • gancho_walletconnect
  • bkrem
  • pedrouid