import hashlib


def generate_identifier(metadata: str) -> str:
    """Generate a (hopefully) unique identifier."""
    obj = hashlib.md5(metadata.encode())
    dig = obj.hexdigest()
    return str(int(dig[:6], 16))