We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5d03074 + 89ec280 commit 49cd5c6Copy full SHA for 49cd5c6
src/io/utils.rs
@@ -62,7 +62,8 @@ use std::sync::Arc;
62
/// [`Builder::set_entropy_bip39_mnemonic`]: crate::Builder::set_entropy_bip39_mnemonic
63
pub fn generate_entropy_mnemonic() -> Mnemonic {
64
// bip39::Mnemonic supports 256 bit entropy max
65
- let mut entropy = [0; 32];
+ // We use 12 words, which is 128 bit entropy
66
+ let mut entropy = [0; 16];
67
thread_rng().fill_bytes(&mut entropy);
68
Mnemonic::from_entropy(&entropy).unwrap()
69
}
0 commit comments