universal-secure-random
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

Universal Secure Random

Version npm

Simple module for secure random number generation in NodeJS, Browser and React Native.

Install

yarn add universal-secure-random

Install for React Native

For generation secure random numbers on React Native react-native-get-random-values is required. No need to import it directly. It will use the library automatically.

yarn add react-native-get-random-values

Example

import { randomBytes } from 'universal-secure-random';
let bytes: UInt8Array = randomBytes(32);

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i universal-secure-random

Weekly Downloads

18

Version

0.0.6

License

MIT

Unpacked Size

8.4 kB

Total Files

12

Last publish

Collaborators

  • steve.kite