0.0.6 • Published 4 years ago

universal-secure-random v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago