Skip to content

randomBytes

randomBytes(length): Uint8Array

Generates a Uint8Array of random bytes of specified length.

Parameters

length: number

The length of the Uint8Array.

Returns

Uint8Array

A Uint8Array of random bytes of specified length.

Defined in

node_modules/.pnpm/@ethereumjs+util@9.1.0/node_modules/@ethereumjs/util/dist/esm/bytes.d.ts:193