Skip to content

Commit

Permalink
Add stability checks with negative seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
ogxd committed Jun 1, 2024
1 parent 9c66ae7 commit 8bee61e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gxhash/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,5 +219,8 @@ mod tests {
assert_eq!(4243413987, gxhash32(&[0u8; 1], 0));
assert_eq!(2401749549, gxhash32(&[0u8; 1000], 0));
assert_eq!(4156851105, gxhash32(&[42u8; 4242], 42));
assert_eq!(1981427771, gxhash32(&[42u8; 4242], -42));
assert_eq!(1156095992, gxhash32(b"Hello World", i64::MAX));
assert_eq!(540827083, gxhash32(b"Hello World", i64::MIN));
}
}

0 comments on commit 8bee61e

Please sign in to comment.