We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
seeded_state
1 parent e1b3727 commit 5742ceaCopy full SHA for 5742cea
src/seeded_state.rs
@@ -43,6 +43,16 @@ mod tests {
43
44
use crate::FxSeededState;
45
46
+ #[test]
47
+ fn same_seed_produces_same_hasher() {
48
+ let seed = 1;
49
+ let a = FxSeededState::with_seed(seed);
50
+ let b = FxSeededState::with_seed(seed);
51
+
52
+ // The hashers should be the same, as they have the same seed.
53
+ assert_eq!(a.build_hasher().hash, b.build_hasher().hash);
54
+ }
55
56
#[test]
57
fn different_states_are_different() {
58
let a = FxSeededState::with_seed(1);
0 commit comments