pub fn generate_entropy(&self) -> String {
        let mut rng = rand::thread_rng();
        let entropy: Vec<String> = (0..self.ent / 4)
            .map(|_| format!("{:x}", rng.gen_range(0..15)))
            .collect();

        entropy.join("")
    }
/*
    The mnemonic must encode entropy in a multiple of 32 bits.
    With more entropy security is improved but the sentence length increases.
     */
The mnemonic must encode entropy in a multiple of 32 bits.
With more entropy security is improved but the sentence length increases.
The mnemonic must encode entropy in a multiple of 32 bits . With more entropy security is improved but the sentence length increases .
pub fn generate_entropy(&self) -> String {
        let mut rng = rand::thread_rng();
        let entropy: Vec<String> = (0..self.ent / 4)
            .map(|_| format!("{:x}", rng.gen_range(0..15)))
            .collect();
        entropy.join("")
    }
pub fn generate_entropy ( & self ) -> String { let mut rng = rand :: thread_rng ( ) ; let entropy : Vec < String > = ( 0 .. self . ent / 4 ) . map ( | _ | format ! ( " " rng gen_range ( 0 15 ) ) ) . collect ( ) ; entropy . join ( " " ) }
The mnemonic must encode entropy in a multiple of 32 bits.
The mnemonic must encode entropy in a multiple of 32 bits .
&self