Function generateRandomBytesUnchecked
- generateRandomBytesUnchecked(length, cryptoInstance?): Uint8Array
Parameters
length: number
cryptoInstance: {
getRandomValues: (<T>(array) => T);
} = crypto
getRandomValues: (<T>(array) => T)
- <T>(array): T
Type Parameters
T extends null | ArrayBufferView
Returns T
Returns Uint8Array
Generate a Uint8Array of the specified length containing a cryptographically-random series of bytes. See generateRandomBytes for a safer alternative.