Commit eb008c0f authored by Joonas Koivunen's avatar Joonas Koivunen
Browse files

fix: update written when batching 32 bytes

parent e018b387
......@@ -77,6 +77,7 @@ impl SeaHasher {
self.state.3 = helper::diffuse(self.state.3 ^ helper::read_u64(ptr.offset(24)));
ptr = ptr.offset(32);
self.written += 32;
}
let mut excessive = bytes.len() + bytes.as_ptr() as usize - ptr as usize;
match excessive {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment