Function randomString

  • Generates a random string based on randomly generated integers encoded as a string.

    Parameters

    • bits: number = 32

      The number of bits to generate.

    • encoding: Encoding = 'base64url'

      The encoding to use for the output string.

    Returns string

    A random string.

Generated using TypeDoc