CityHash checksums


The checksums.cityhash vocabulary implements Google's non-cryptographic CityHash algorithms in Factor. They implement the checksum protocol and return integers. Input is a sequence of bytes; encode text to bytes before hashing.
cityhash-32

cityhash-64

<cityhash-64> ( seed -- cityhash-64 )

cityhash-128

<cityhash-128> ( seed -- cityhash-128 )


Examples
USING: checksums checksums.cityhash prettyprint ; B{ } cityhash-32 checksum-bytes .
3696677242

Reference implementation: https://github.com/google/cityhash.