Function generate_random_string

Source
pub fn generate_random_string(length: usize) -> String
Expand description

Generate a random alphanumeric string with a given length.

ยงExample

// Uses elapsed seconds and the current timestamp to return a timestamp offset by the seconds.
let timestamp = generate_random_string(20);