import string
import random


def generate_random_file_name(length = 5) -> str:
    """
    Generate a random file name
    :param length: file name length
    :return: the file name
    """

    filename_characters = list(string.ascii_letters + string.digits)
    try:
        r = random.SystemRandom()
        return ''.join(r.sample(filename_characters, length))
    except NotImplementedError:
        return ''.join(random.sample(filename_characters, length))