···2233open Alcobar
4455-(* Hashing must succeed for inputs of every length without reading out of
66- bounds -- this exercises the gating around the 32-byte stripe loop and the
55+(* Hashing must succeed for inputs of every length without reading out of bounds
66+ -- this exercises the gating around the 32-byte stripe loop and the
77 8/4/1-byte tail steps -- and must be deterministic. *)
88let test_total_and_deterministic s =
99 let a = Xxhash.hash64_string s in
···44 one-shot consistency, boundary conditions, and basic properties. *)
5566(* The official xxHash test suite hashes a deterministic pseudo-random buffer:
77- byteGen starts at PRIME32, each byte is (byteGen >> 56) & 0xFF, then
88- byteGen *= PRIME64. (Note this PRIME64 is the test generator's, not the
77+ byteGen starts at PRIME32, each byte is (byteGen >> 56) & 0xFF, then byteGen
88+ *= PRIME64. (Note this PRIME64 is the test generator's, not the
99 algorithm's.) *)
1010let prime32 = 2654435761L
1111let prime64_gen = 0x9e3779b185ebca8dL