import random


def generate_commit_id(id_length: int = 40) -> str:
    """Creates a random string using 0-9a-f, of a certain length."""
    chars = "1234567890abcdef"
    return "".join(random.choice(chars) for _ in range(id_length))