import string
import random


def ctx_id_factory() -> str:
    """A factory method to give ctx id as 8 chars random string"""

    chars = string.ascii_letters + string.digits
    return ''.join(random.choice(chars) for _ in range(8))