CityHash

Implementation of CityHash digester.

CityHash is a family of hash functions developed by Google. It provides fast and strong hash functions for hash tables and checksums.

static
@digester
class CityHash {}

Members

Static functions

hash
ubyte[] hash(ubyte[] data)

Computes the CityHash digest of the given data.

Examples

import tern.digest.cityhash;

ubyte[] data = [1, 2, 3, 4, 5];
auto hashValue = CityHash.hash(data);

Meta