🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

react-native-get-random-values

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-get-random-values

A small implementation of `crypto.getRandomValues` for React Native. This is useful to polyfill for libraries like [uuid](https://www.npmjs.com/package/uuid) that depend on it.

1.11.0
latest
Source
npm
Version published
Weekly downloads
1.1M
9.06%
Maintainers
1
Weekly downloads
 
Created

What is react-native-get-random-values?

The react-native-get-random-values package is a polyfill for the Web Crypto API's getRandomValues method, which allows you to generate cryptographically strong random values in a React Native environment.

What are react-native-get-random-values's main functionalities?

Generate Random Values

This feature allows you to generate cryptographically strong random values. The code sample demonstrates how to use the getRandomValues method to fill a typed array with random values.

const { getRandomValues } = require('react-native-get-random-values');

const array = new Uint32Array(10);
getRandomValues(array);
console.log(array);

Other packages similar to react-native-get-random-values

Keywords

Crypto.getRandomValues

FAQs

Package last updated on 06 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts