Improved hash algorithm.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3005 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1998-10-01 15:37:14 +00:00
parent 5e9a6183af
commit 964d0e113e

View file

@ -1553,7 +1553,7 @@ else
while (*p && char_count++ < NSHashStringLength)
{
ret ^= *p++ << ctr;
ctr = (ctr + 1) % sizeof (void*);
ctr = (ctr + 4) % 20;
}
return ret;
}