Skip to main content

LensStudio:Crypto.getRandomValues

Function

Fills the given typed array with cryptographically strong random values and returns it.

getRandomValues(typedArray): Uint8Array

Fills the given typed array with cryptographically strong random values and returns it.

Parameters

ParameterType
typedArrayUint8Array

Returns

Uint8Array