Implementation of DJB2 digester.
DJB2 is a widely used non-cryptographic hash function created by Daniel J. Bernstein. It is simple, fast, and produces well-distributed hash values for various inputs.
Computes the DJB2 hash digest of the given data.
import tern.digest.djb2; ubyte[] data = [1, 2, 3, 4, 5]; auto hashValue = DJB2.hash(data);
See Implementation
Implementation of DJB2 digester.
DJB2 is a widely used non-cryptographic hash function created by Daniel J. Bernstein. It is simple, fast, and produces well-distributed hash values for various inputs.