1
0
forked from bip/bip

I forgot that my hash lib function was braindead.

This commit is contained in:
nohar 2007-01-05 22:20:17 +00:00
parent 0194ae7c47
commit 006f5c07e5

View File

@ -460,7 +460,7 @@ static unsigned char hash_func(char *pkey)
unsigned long hash = 5381; /* 5381 & 0xff makes more sense */ unsigned long hash = 5381; /* 5381 & 0xff makes more sense */
while ((c = *pkey++)) while ((c = *pkey++))
hash = ((hash << 5) + hash) ^ c; hash = ((hash << 5) + hash) ^ toupper(c);
return (unsigned char)hash; return (unsigned char)hash;
} }