1.8.4 • Published 3 years ago
@react-native-module/get-random-values v1.8.4
react-native-module/get-random-values
This module export a function getRandomValues only
with same Web API crypto.getRandomValues
Why use this module not react-native-get-random-values
react-native-get-random-values is pollifill package,
but, this module add anything on global scope
Installation
A typical workflow:
npm i --save @react-native-module/get-random-valuesyarn add @react-native-module/get-random-valuesUsage
import { getRandomValues } from "@react-native-module/get-random-values";
const randomValues = getRandomValues(new Uint8Array(4));getRandomValues(typedArray)
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.
1.8.5-4
3 years ago
1.8.5-3
3 years ago
1.8.5-2
3 years ago
1.8.5-1
3 years ago
1.8.5-0
3 years ago
1.8.4
3 years ago
1.8.4-1
3 years ago
1.8.4-0
3 years ago
1.8.3
3 years ago
1.8.3-1
3 years ago
1.8.3-0
3 years ago
1.8.2
3 years ago
1.8.0-alpha.2
3 years ago
1.8.1
3 years ago
1.8.0-alpha.1
3 years ago
1.8.0-alpha.0
3 years ago
1.8.0
3 years ago