Skip to main content

generate_id

Function generate_id 

Source
pub fn generate_id(prefix: &str, suffix: &str) -> String
Expand description

Generate an ID with a random 21-byte and ID/URI-safe component This does no collision check (but they will be extremely unlikely)