• Generate a string of random characters.

    Parameters

    • length: number

      length of generated string

    • pool: string = CHAR_LIST

      character pool to generate string from

    Returns string

    generated string

    const random = randomString();
    const randomByte = randomString(8, "01")