Skip to content

gen_cor_id

faststream.broker.message.gen_cor_id #

gen_cor_id()

Generate random string to use as ID.

Source code in faststream/broker/message.py
def gen_cor_id() -> str:
    """Generate random string to use as ID."""
    return str(uuid4())