Function actix_plus_utils::secure_random_string[][src]

pub fn secure_random_string(len: usize) -> String

Generates a secure random string. This is useful for token generation, such as email verification tokens. This string can contain any of the characters in the string “abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890” with equal probability.