Function hash_djb

Function Documentation

uint32_t hash_djb(const void *data, size_t len)

Compute a hash over data.

Hash algorithm from Dan J. Bernstein.

Parameters:
  • data – The data to hash over

  • len – # of bytes of data to hash

Returns:

The hash, or 0 if an ERROR occurred