Skip to content

Commit

Permalink
fix: Choose numbers between 0 and 100 for subtraction
Browse files Browse the repository at this point in the history
  • Loading branch information
uggla committed Oct 20, 2024
1 parent 4786221 commit 2a57d7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/elements/enigma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ fn spawn_enigma_materials(
]),
});

let mut n1 = rng.gen_range(0..=50);
let mut n2 = rng.gen_range(0..=50);
let mut n1 = rng.gen_range(0..=100);
let mut n2 = rng.gen_range(0..=100);
if n2 > n1 {
mem::swap(&mut n1, &mut n2);
}
Expand Down

0 comments on commit 2a57d7c

Please sign in to comment.