Skip to main content

generate_request_id

Function generate_request_id 

Source
pub fn generate_request_id() -> String
Expand description

A short synthetic ID in the documented tc-XXXXXXXX shape (8 lowercase hex chars), derived from the current time and process ID. Good enough for a human-scannable, practically-unique local identifier; not a security-sensitive value, so DefaultHasher (not a cryptographic hash) is an appropriate, dependency-free choice.