The one in glib is very nice. Not sure if it is too big and / or can isolate itself from the rest of the glib.
Otherwise, Pearson hashing seems like a good starting point for implementing your own (this is a hash function optimized for machines with 8-bit registers).
source
share