mod eff_large_wordlist;
mod eff_short_wordlist;
pub mod large {
use rand::seq::SliceRandom;
use rand::thread_rng;
pub const LIST: &[(u32, &str)] = crate::eff_large_wordlist::LARGE;
pub fn random_word() -> &'static str {
let mut rng = thread_rng();
LIST.choose(&mut rng).unwrap().1
}
}
pub mod short {
use rand::seq::SliceRandom;
use rand::thread_rng;
pub const LIST: &[(u32, &str)] = crate::eff_short_wordlist::SHORT;
pub fn random_word() -> &'static str {
let mut rng = thread_rng();
LIST.choose(&mut rng).unwrap().1
}
}