fn generate_salt(length: usize) -> String {
        let mut rng = thread_rng();
        iter::repeat(())
            .map(|()| rng.sample(Alphanumeric))
            .take(length)
            .collect()
    }
/// creates a random salt with given length
/// # Arguments
/// * `length` - the length of string to return
creates a random salt with given length
creates a random salt with given length
fn generate_salt(length: usize) -> String {
        let mut rng = thread_rng();
        iter::repeat(())
            .map(|()| rng.sample(Alphanumeric))
            .take(length)
            .collect()
    }
fn generate_salt ( length : usize ) -> String { let mut rng = thread_rng ( ) ; iter :: repeat ( ( ) ) . map ( | ( ) | rng . sample ( Alphanumeric ) ) . take ( length ) . collect ( ) }
creates a random salt with given length
creates a random salt with given length
length
usize
length
usize