import hashlib
import time
import random


def generate_random_code(seed: str) -> str:
    """Generates a random code using the given seed."""
    return hashlib.sha256(
        ("{}-{}-{}".format(seed, time.time(), random.randint(100, 999))).encode("utf-8")
    ).hexdigest()