Function hash_default

Function Documentation

uint32_t hash_default(const void *data, size_t len)

Compute a hash over data.

Hash algorthim from Bob Jenkins on wikipedia.

Parameters:
  • data – The data to hash over

  • len – # of bytes of data to hash

Returns:

The hash, or 0 if an ERROR occurred