Make name generation seed-dependent again

This commit is contained in:
Joshua Barretto 2019-06-19 14:37:46 +01:00
parent 5f09e75541
commit 3e56c65e86

View File

@ -55,7 +55,7 @@ fn generate_name<R: Rng>(rng: &mut R) -> String {
]; ];
let mut name = String::new(); let mut name = String::new();
if rand::random() { if rng.gen() {
name += rng.choose(&firstsyl).unwrap(); name += rng.choose(&firstsyl).unwrap();
name += rng.choose(&mid).unwrap(); name += rng.choose(&mid).unwrap();
name += rng.choose(&tails).unwrap(); name += rng.choose(&tails).unwrap();