Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.qu.ai/llms.txt

Use this file to discover all available pages before exploring further.

function randomBytes(length): Uint8Array
Return length bytes of cryptographically secure random data.

Parameters

ParameterTypeDescription
lengthnumberThe number of bytes to generate.

Returns

Uint8Array The random bytes.

Example

randomBytes(8);

Source

crypto/random.ts:29