include the tag id in the hash!

This commit is contained in:
Folkert 2021-06-29 22:30:36 +02:00
parent 978cea4b8a
commit 6223892c6b
3 changed files with 156 additions and 20 deletions

View file

@ -8,10 +8,9 @@ const str = @import("str.zig");
const mem = std.mem;
pub fn wyhash(seed: u64, bytes: ?[*]const u8, length: usize) callconv(.C) u64 {
const stdout = std.io.getStdOut().writer();
if (bytes) |nonnull| {
return wyhash_hash(seed, nonnull[0..length]);
const slice = nonnull[0..length];
return wyhash_hash(seed, slice);
} else {
return 42;
}