diff options
Diffstat (limited to 'src/util/mod.rs')
| -rw-r--r-- | src/util/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/mod.rs b/src/util/mod.rs index c2b23273..b8bf90d2 100644 --- a/src/util/mod.rs +++ b/src/util/mod.rs @@ -12,7 +12,7 @@ use std::num::NonZeroUsize; use std::path::{Component, Path, PathBuf}; use std::sync::Arc; -use siphasher::sip128::{Hasher128, SipHasher}; +use siphasher::sip128::{Hasher128, SipHasher13}; /// Turn a closure into a struct implementing [`Debug`]. pub fn debug<F>(f: F) -> impl Debug @@ -35,7 +35,7 @@ where /// Calculate a 128-bit siphash of a value. pub fn hash128<T: Hash + ?Sized>(value: &T) -> u128 { - let mut state = SipHasher::new(); + let mut state = SipHasher13::new(); value.hash(&mut state); state.finish128().as_u128() } |
