Skip to content

Commit 2c1a088

Browse files
authored
Run smhasher test with weaker keys
1 parent fc7b36b commit 2c1a088

File tree

1 file changed

+1
-1
lines changed
  • smhasher/ahash-cbindings/src

1 file changed

+1
-1
lines changed

smhasher/ahash-cbindings/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ use std::hash::{BuildHasher};
77
#[no_mangle]
88
pub extern "C" fn ahash64(buf: *const (), len: usize, seed: u64) -> u64 {
99
let buf: &[u8] = unsafe { slice::from_raw_parts(buf as *const u8, len) };
10-
let build_hasher = RandomState::with_seed(seed as usize);
10+
let build_hasher = RandomState::with_seeds(seed, seed, seed, seed);
1111
build_hasher.hash_one(&buf)
1212
}

0 commit comments

Comments
 (0)