This module export a function getRandomValues only
with same Web API crypto.getRandomValues
react-native-get-random-values is pollifill package,
but, this module add anything on global scope
A typical workflow:
npm i --save @react-native-module/get-random-values
yarn add @react-native-module/get-random-values
import { getRandomValues } from "@react-native-module/get-random-values";
const randomValues = getRandomValues(new Uint8Array(4));typedArray- Is an integer-based TypedArray, that is anInt8Array, aUint8Array, anInt16Array, aUint16Array, anInt32Array, or aUint32Array. All elements in the array are going to be overridden with random numbers.
Returns the typed array that was passed in.