int i = klen; unsigned int hash = 0; char *s = key; while (i--) hash = hash * 33 + *s++;