pub fn generate_id(len: usize) -> String {
    rand::thread_rng()
        .sample_iter(Uniform::new(0, 55))
        .take(len)
        .map(|e| DICTIONARY.get(e).unwrap())
        .collect()
}
/// Creates a random string of defined length.
/// The resulting string is composed of the following characters:
///
/// All alphanumeric characters (case sensitive) without the following: "0oOIiLl"
/// They are removed to improve readability without impacting much the entropy of the resulting functions.
///
/// Only a few lengths should be used for the sake of uniformity:
/// - 6 characters (503284375 possibilities) for **non sensitive** url displayed elements
/// - 12 characters (6*10^34 possibilities) for non displayed and sensitive elements
///
/// **Secrets SHOULD NOT be generated with this function**
///
/// The [generate_secret] functions uses ring's CSPRNG system, that is saver and more audited.
Creates a random string of defined length.
The resulting string is composed of the following characters.

All alphanumeric characters (case sensitive) without the following: "0oOIiLl"
They are removed to improve readability without impacting much the entropy of the resulting functions.



Secrets SHOULD NOT be generated with this function

The [generate_secret] functions uses ring's CSPRNG system, that is saver and more audited.
Creates a random string of defined length . The resulting string is composed of the following characters . All alphanumeric characters ( case sensitive ) without the following : " 0oOIiLl " They are removed to improve readability without impacting much the entropy of the resulting functions . Secrets SHOULD NOT be generated with this function The [ generate_secret ] functions uses ring ' s CSPRNG system that is saver and more audited .
pub fn generate_id(len: usize) -> String {
    rand::thread_rng()
        .sample_iter(Uniform::new(0, 55))
        .take(len)
        .map(|e| DICTIONARY.get(e).unwrap())
        .collect()
}
pub fn generate_id ( len : usize ) -> String { rand :: thread_rng ( ) . sample_iter ( Uniform :: new ( 0 , 55 ) ) . take ( len ) . map ( | e | DICTIONARY . get ( e ) . unwrap ( ) ) . collect ( ) }
Creates a random string of defined length.
Creates a random string of defined length .
len
usize
len
usize