Skip to main content

generate_random_string

Function generate_random_string 

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

Generates a random alphanumeric string of a specified length.

This is useful for creating unique identifiers, tokens, or temporary filenames.

§Arguments

  • length - The desired length of the random string.

§Returns

A randomly generated String.