hashkit_default(3) hashkit_fnv1_32,

LIBRARY

C Library for hashing algorithms (libhashkit, -lhashkit)

SYNOPSIS


#include <libhashkit/hashkit.h>
uint32_t hashkit_default(const char *key, size_t key_length);
uint32_t hashkit_fnv1_64(const char *key, size_t key_length);
uint32_t hashkit_fnv1a_64(const char *key, size_t key_length);
uint32_t hashkit_fnv1_32(const char *key, size_t key_length);
uint32_t hashkit_fnv1a_32(const char *key, size_t key_length);
uint32_t hashkit_crc32(const char *key, size_t key_length);
uint32_t hashkit_hsieh(const char *key, size_t key_length);
uint32_t hashkit_murmur(const char *key, size_t key_length);
uint32_t hashkit_jenkins(const char *key, size_t key_length);
uint32_t hashkit_md5(const char *key, size_t key_length);

DESCRIPTION

These functions generate hash values from a key using a variety of algorithms. These functions can be used standalone, or as arguments to hashkit_set_hash_fn(3) or hashkit_set_continuum_hash_fn(3).

The hashkit_hsieh() is only available if the library is built with the appropriate flag enabled.

RETURN VALUE

A 32-bit hash value.

HOME

To find out more information please check: <https://launchpad.net/libmemcached>

AUTHOR

Brian Aker, <[email protected]>