Generates cryptographically random bytes using crypto.getRandomValues.
Number of random bytes to generate.
A new Uint8Array filled with random bytes.
const salt = randomBytes(16); Copy
const salt = randomBytes(16);
Generates cryptographically random bytes using crypto.getRandomValues.