length bytes of cryptographically secure random data.
Parameters
Returns
Uint8Array
The random bytes.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
function randomBytes(length): Uint8Array
length bytes of cryptographically secure random data.
| Parameter | Type | Description |
|---|---|---|
length | number | The number of bytes to generate. |
Uint8Array
The random bytes.
randomBytes(8);
Was this page helpful?
