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
1 changed files with 1 additions and 1 deletions

View File

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