Skip to content

Commit

Permalink
Merge pull request #11 from chritchens/master
Browse files Browse the repository at this point in the history
Use DefaultHasher in place of the deprecated SipHasher
  • Loading branch information
apoelstra authored Apr 27, 2017
2 parents f272b83 + ab0493e commit ab72e8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -673,11 +673,12 @@ mod test {

#[test]
fn pubkey_hash() {
use std::hash::{Hash, SipHasher, Hasher};
use std::collections::hash_map::DefaultHasher;
use std::hash::{Hash, Hasher};
use std::collections::HashSet;

fn hash<T: Hash>(t: &T) -> u64 {
let mut s = SipHasher::new();
let mut s = DefaultHasher::new();
t.hash(&mut s);
s.finish()
}
Expand Down

0 comments on commit ab72e8d

Please sign in to comment.