• Generates a random sequence of bytes securely using Node.js's crypto module.

    Parameters

    • size: number

      The number of bytes to generate.

    Returns Uint8Array

    A Uint8Array containing the generated random bytes.