import random
import string


def generate_random_string(length=7):
    """Generates random string"""
    return ''.join(random.SystemRandom().choice(string.ascii_letters + string.digits) for _ in range(length))