Skip to main content

getRandomBytes() function

generates Uint8Array with random bytes of size n

Signature:

export declare function getRandomBytes(n: number): Uint8Array;

Parameters

ParameterTypeDescription
nnumbersize of array

Returns:

Uint8Array

Uint8Array