import string
import random


def random_str(length=24, alphabet=string.ascii_letters):
    """
    Helper function that generates a random string.
    """
    return ''.join((random.choice(alphabet) for _ in range(length)))