You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perl_siphash.h - add a 64 bit variant for testing, cleanup line endings
Scott Baker wanted a 64 bit general purpose hash function. Currently our
Siphash implementation is optimized for use in the internal hash tables
by having its state initialization separated from the main hash
function. We have a 32 bit variant we use for testing that takes a seed
and not a state, but our only 64 bit support has the seeding step split
out. This patch exposes a seedable 64 bit function.
Note, that Siphash *is* a 64 bit hash function, however historically
we only use 32 bit hashes in our hash tables. The new variant we
expose here basically just exposes the normal Siphash that most people
would use.
A follow up patch will add documentation.
0 commit comments