From e9c56327b1148a82b8f4408f20196d9b1d610852 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Sun, 20 Mar 2022 13:43:31 +0000 Subject: [PATCH] Avoid duplicating constant --- agb/src/hash_map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agb/src/hash_map.rs b/agb/src/hash_map.rs index 1d53cfa0..f3b221cc 100644 --- a/agb/src/hash_map.rs +++ b/agb/src/hash_map.rs @@ -568,7 +568,7 @@ mod test { for _ in 0..5_000 { let command = rng.next().rem_euclid(2); - let key = rng.next().rem_euclid(128); + let key = rng.next().rem_euclid(answers.len() as i32); let value = rng.next(); match command {