import random
import string


def _temp_name() -> str:
    """
    Generate a temporary name.

    Prefixes a string of 10 random characters with 'temp_db' & returns it.
    """
    random_letters = [random.choice(string.ascii_lowercase) for _ in range(10)]
    rnd = "".join(random_letters)
    tempname = 'temp_db' + rnd

    return tempname