Algorithm.Hash

lib/Algorithm/Hash.gob

FNV-1a over 64 bits.

The arithmetic is the explicit wrapping primitives, not * and +: a mixer is supposed to overflow, and the trapping operators would panic the moment a full-width key reached them.

A word is absorbed as its eight bytes, least significant first. A run of bytes is absorbed as its length, as a word, and then byte by byte, so that where a run ends is part of the hash. Turkey.Asm names message labels by this hash, so changing what it computes changes the compiler's output.

type FNV1a
instance Hasher FNV1a