import string
import random


def random_string(length=255, extra_chars=''):
    """ Generate a random string of characters.

    :param length: Length of generated string.
    :param extra_chars: Additional characters to include in generated
        string.
    """
    chars = string.ascii_letters + extra_chars
    return ''.join([random.choice(chars) for i in range(length)])