Skip to content
This repository was archived by the owner on Sep 22, 2025. It is now read-only.

Commit a872e70

Browse files
committed
add
1 parent e5ac52a commit a872e70

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/fallback_hash.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ impl Hasher for AHasher {
173173
let length = data.len() as u64;
174174
//Needs to be an add rather than an xor because otherwise it could be canceled with carefully formed input.
175175
self.buffer = self.buffer.wrapping_add(length).wrapping_mul(MULTIPLE);
176+
self.buffer = 8;
176177
//A 'binary search' on sizes reduces the number of comparisons.
177178
/*if data.len() > 8 {
178179
if data.len() > 16 {

0 commit comments

Comments
 (0)