Skip to content

Commit

Permalink
All smhasher tests pass
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Kaitchuck <Tom.Kaitchuck@gmail.com>
  • Loading branch information
tkaitchuck committed Mar 3, 2024
1 parent e379d45 commit 7dc83fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smhasher/ahash-cbindings/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ use std::hash::{BuildHasher};
#[no_mangle]
pub extern "C" fn ahash64(buf: *const (), len: usize, seed: u64) -> u64 {
let buf: &[u8] = unsafe { slice::from_raw_parts(buf as *const u8, len) };
let build_hasher = RandomState::with_seeds(seed, seed, seed, seed);
let build_hasher = RandomState::<&[u8]>::with_seeds(seed, seed, seed, seed);
build_hasher.hash_one(&buf)
}

0 comments on commit 7dc83fc

Please sign in to comment.