Crypto
randomBytes
Return length
bytes of cryptographically secure random data.
Parameters
Parameter | Type | Description |
---|---|---|
length | number | The number of bytes to generate. |
Returns
Uint8Array
The random bytes.
Example
Source
Was this page helpful?
Return length
bytes of cryptographically secure random data.
Parameter | Type | Description |
---|---|---|
length | number | The number of bytes to generate. |
Uint8Array
The random bytes.
Was this page helpful?