@me2em/crypto
    Preparing search index...

    Function randomBytes

    • Generates cryptographically random bytes using crypto.getRandomValues.

      Parameters

      • length: number

        Number of random bytes to generate.

      Returns Uint8Array

      A new Uint8Array filled with random bytes.

      const salt = randomBytes(16);