Hash.FoldHash

lib/Hash/FoldHash.gob

foldhash's fast variant (foldhash-f), the default hasher of Rust's hashbrown: every step is one folded multiply of the input xored with the state and a secret.

Words are buffered two at a time in a 128-bit "sponge" and folded in one multiply, so a key of one or two words costs one multiply in all, at finishHash. A byte run is folded into the state at once, rotated first by its length so that runs of different lengths start apart.

type FoldHash
instance Hasher FoldHash