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.
2 parents e1b3727 + 5742cea commit eb049a8Copy full SHA for eb049a8
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