Skip to main content

random_alphanumeric

Function random_alphanumeric 

Source
pub fn random_alphanumeric(len: usize) -> Result<String>
Expand description

Random string of len characters from [A-Za-z0-9], uniformly distributed (rejection sampling). Handy for short public ids; for secrets prefer random_token.