import uuid


def get_random_filename(ext, prefix=""):
    """
    Returns a randomly generated string with the specified
    extension `ext` appended at the end. `ext` should have a dot.
    A str `prefix` can also be prefixed to the filename.
    """
    # hex returns a string with no dashes
    return prefix + str(uuid.uuid4().hex) + ext