import random
import string


def generate_random_filename_safe_text(length: int = 4) -> str:
    """
    Generates a (not cryptographically safe) random filename-safe string.

    Args:
        length:
            Length of the random text.

    Returns:
        Generated text.
    """
    return "".join([
        random.choice(string.ascii_letters + string.digits)
        for _ in range(length)
    ])