Skip to content

Commit

Permalink
Use SipHasher13 instead of 24 (#641)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaka authored May 31, 2023
1 parent aee4c83 commit fce97f1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions full-node/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ impl SipHasherBuild {
}

impl core::hash::BuildHasher for SipHasherBuild {
type Hasher = siphasher::sip::SipHasher;
type Hasher = siphasher::sip::SipHasher13;

fn build_hasher(&self) -> Self::Hasher {
siphasher::sip::SipHasher::new_with_key(&self.0)
siphasher::sip::SipHasher13::new_with_key(&self.0)
}
}
4 changes: 2 additions & 2 deletions lib/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ impl SipHasherBuild {
}

impl core::hash::BuildHasher for SipHasherBuild {
type Hasher = siphasher::sip::SipHasher;
type Hasher = siphasher::sip::SipHasher13;

fn build_hasher(&self) -> Self::Hasher {
siphasher::sip::SipHasher::new_with_key(&self.0)
siphasher::sip::SipHasher13::new_with_key(&self.0)
}
}

Expand Down
4 changes: 2 additions & 2 deletions light-base/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ impl SipHasherBuild {
}

impl core::hash::BuildHasher for SipHasherBuild {
type Hasher = siphasher::sip::SipHasher;
type Hasher = siphasher::sip::SipHasher13;

fn build_hasher(&self) -> Self::Hasher {
siphasher::sip::SipHasher::new_with_key(&self.0)
siphasher::sip::SipHasher13::new_with_key(&self.0)
}
}

0 comments on commit fce97f1

Please sign in to comment.