xxhash#
The xxHash non-cryptographic hash in pure OCaml (XXH64).
Overview#
xxHash is a fast non-cryptographic hash. This library implements the 64-bit variant, XXH64. Apache Parquet's split-block bloom filters hash their values with XXH64 (seed 0), so this is the hash that backs Parquet bloom-filter probes.
Installation#
$ opam install xxhash
If opam cannot find the package, it may not yet be released in the public
opam-repository. Add the overlay repository, then install it:
$ opam repo add samoht https://tangled.org/gazagnaire.org/opam-overlay.git
$ opam update
$ opam install xxhash
Usage#
The digest matches the reference xxhsum -H64:
# Printf.sprintf "%016Lx" (Xxhash.hash64_string "")
- : string = "ef46db3751d8e999"
# Printf.sprintf "%016Lx" (Xxhash.hash64_string "The quick brown fox jumps over the lazy dog")
- : string = "0b242d361fda71bc"