Fnv1Generic.fnv1

Calculates a FNV1/FNV1a digest from data. data are processed in octet/byte-wise manner.

Usage:

import ocean.io.digest.Fnv;

auto data = "sociomantic";

uint  digest32 = Fnv32.fnv1(data);
ulong digest64 = Fnv64.fnv1(data);
class Fnv1Generic(bool FNV1A = false, T = hash_t)
static
DigestType
fnv1
(
U
)
(,
DigestType digest = INIT
)

Parameters

data U

data to digest

digest DigestType

initial digest; defaults to the magic 32 bit or 64 bit initial value, according to DigestType

Return Value

Type: DigestType

resulting digest

Meta