Skip to content

Commit

Permalink
Use valid keys to initialize AHasher in FixedState (#1268)
Browse files Browse the repository at this point in the history
Using 0 as keys causes the hasher to get stuck
  • Loading branch information
bjorn3 authored Jan 20, 2021
1 parent ac7d2de commit 7aefd72
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/bevy_utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
}
}

Expand Down

0 comments on commit 7aefd72

Please sign in to comment.