Merge pull request #11 from chritchens/master

Use DefaultHasher in place of the deprecated SipHasher
This commit is contained in:
Andrew Poelstra 2017-04-27 21:13:59 +00:00 committed by GitHub
commit ab72e8da42
1 changed files with 3 additions and 2 deletions

View File

@ -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()
}