From 7aefd727f6faa4e2cd2157a6a7a636b2c1de3715 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Wed, 20 Jan 2021 23:24:57 +0100 Subject: [PATCH] Use valid keys to initialize AHasher in FixedState (#1268) Using 0 as keys causes the hasher to get stuck --- crates/bevy_utils/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/bevy_utils/src/lib.rs b/crates/bevy_utils/src/lib.rs index 86668cab71..17560532b7 100644 --- a/crates/bevy_utils/src/lib.rs +++ b/crates/bevy_utils/src/lib.rs @@ -20,7 +20,10 @@ impl std::hash::BuildHasher for FixedState { #[inline] fn build_hasher(&self) -> AHasher { - AHasher::new_with_keys(0, 0) + AHasher::new_with_keys( + 0b1001010111101110000001001100010000000011001001101011001001111000, + 0b1100111101101011011110001011010100000100001111100011010011010101, + ) } }