pub fn generate(length: usize) -> String {
        let mut rng = thread_rng();
        (&mut rng).sample_iter(Alphanumeric)
            .take(length)
            .map(char::from)
            .collect()
    }
/// creates a random salt with given length
/// # Arguments
/// * `length` - the length of string to return
/// ```rust
/// use data_vault::utils::Salt;
///
/// let salt = Salt::generate(32);
/// ```
creates a random salt with given length
creates a random salt with given length
pub fn generate(length: usize) -> String {
        let mut rng = thread_rng();
        (&mut rng).sample_iter(Alphanumeric)
            .take(length)
            .map(char::from)
            .collect()
    }
pub fn generate ( length : usize ) -> String { let mut rng = thread_rng ( ) ; ( & mut rng ) . sample_iter ( Alphanumeric ) . take ( length ) . map ( char :: from ) . collect ( ) }
creates a random salt with given length
creates a random salt with given length
length
usize
length
usize