React Native Get Random Values

A small implementation of `getRandomValues` for React Native
Alternatives To React Native Get Random Values
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Nanoid22,01510,5227,08417 days ago94November 06, 20236mitJavaScript
A tiny (109 bytes), secure, URL-friendly, unique string ID generator for JavaScript
React Native Get Random Values303118710 days ago16November 20, 202312mitJavaScript
A small implementation of `getRandomValues` for React Native
Sparticles1661a year ago23December 20, 20218mpl-2.0JavaScript
JavaScript Particles in Canvas ~~ Fast, Lightweight, High Performance.
Random Gradient6531a year ago2June 08, 201713mitJavaScript
Generate beautiful random gradients
3 years ago2JavaScript
A random affirmation generator written with ReactJS :-)
Advanced Passgen39
5 days ago1gpl-3.0JavaScript
Advanced Password Generator
Random Music Generators36
a year ago1other
Random chord, melody, and rhythm generators with MIDI output
Bigint Crypto Utils30
5 months agomitJavaScript
Utils for working with cryptography using native JS implementation of BigInt. It includes arbitrary precision modular arithmetics, cryptographically secure random numbers and strong probable prime generation/testing. It works with Node.js, and native JS, including React and Angular
React Lorem Ipsum28852 years ago27February 11, 20223mitJavaScript
Lorem Ipsum Text Generator for React
Evernote Random26
4 years ago24otherJavaScript
Use evernote API as a logged-in user - react and express project
Alternatives To React Native Get Random Values
Select To Compare

Alternative Project Comparisons

crypto.getRandomValues for React Native

A small implementation of crypto.getRandomValues for React Native. This is useful to polyfill for libraries like uuid that depend on it.


npm install react-native-get-random-values
npx pod-install

If you use the Expo managed workflow you will see "CocoaPods is not supported in this project" - this is fine, it's not necessary.


This library works as a polyfill for the global crypto.getRandomValues.

// Add this line to your `index.js`
import 'react-native-get-random-values'

Now you can use uuid or other libraries that assume crypto.getRandomValues is available.

import { v4 as uuid } from 'uuid'




The crypto.getRandomValues() method lets you get cryptographically strong random values. The array given as the parameter is filled with random numbers (random in its cryptographic meaning).

To guarantee enough performance, implementations are not using a truly random number generator, but they are using a pseudo-random number generator seeded with a value with enough entropy. The PRNG used differs from one implementation to the other but is suitable for cryptographic usages. Implementations are also required to use a seed with enough entropy, like a system-level entropy source.

  • typedArray - Is an integer-based TypedArray, that is an Int8Array, a Uint8Array, an Int16Array, a Uint16Array, an Int32Array, or a Uint32Array. All elements in the array are going to be overridden with random numbers.

Returns the typed array that was passed in.

Popular Reactjs Projects
Popular Random Projects
Popular Web User Interface Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.