tangled
alpha
login
or
join now
sachy.dev
/
nailpit
4
fork
atom
A pit full of rusty nails
4
fork
atom
overview
issues
1
pulls
pipelines
Tweak hash mixing
sachy.dev
1 month ago
be341476
c17d6964
2/2
miri.yml
success
1min 49s
test.yml
success
1min 43s
+2
-2
1 changed file
expand all
collapse all
unified
split
crates
nailkov
src
token.rs
+2
-2
crates/nailkov/src/token.rs
···
59
59
}
60
60
61
61
/// Use the precomputed hashes to generate a secondary hash.
62
62
-
/// Method from [fastbloom](https://github.com/tomtomwombat/fastbloom/blob/main/src/hasher.rs#L190),
62
62
+
/// Method from [fastbloom](https://github.com/tomtomwombat/fastbloom/blob/main/src/hasher.rs#L182),
63
63
/// which was in turn adapted from <https://www.eecs.harvard.edu/~michaelm/postscripts/rsa2008.pdf>.
64
64
#[inline(always)]
65
65
fn mix_hashes(&self) -> u64 {
···
67
67
.0
68
68
.digest()
69
69
.hash()
70
70
-
.wrapping_add(self.right.0.digest().hash())
71
70
.rotate_left(5)
71
71
+
.wrapping_add(self.right.0.digest().hash())
72
72
}
73
73
}
74
74