function randomBytes(length): Uint8Array
Return length bytes of cryptographically secure random data.
length
number
Uint8Array
The random bytes.
randomBytes(8);
crypto/random.ts:29
Was this page helpful?