I forgot that my hash lib function was braindead.
This commit is contained in:
parent
0194ae7c47
commit
006f5c07e5
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user