mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
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:
parent
5e9a6183af
commit
964d0e113e
1 changed files with 1 additions and 1 deletions
|
@ -1553,7 +1553,7 @@ else
|
|||
while (*p && char_count++ < NSHashStringLength)
|
||||
{
|
||||
ret ^= *p++ << ctr;
|
||||
ctr = (ctr + 1) % sizeof (void*);
|
||||
ctr = (ctr + 4) % 20;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue