• Generate a random alphanumeric string ID of a given requested length using crypto.getRandomValues().

    Parameters

    • length: number = 16

      The length of the random string to generate, which must be at most 16384.

    Returns string

    A string containing random letters (A-Z, a-z) and numbers (0-9).