mirror of
https://github.com/oe7drt/YSFClients.git
synced 2025-12-06 05:32:02 +01:00
Change the hash calculation slightly.
This commit is contained in:
parent
b8f0036fb5
commit
02b6f5342e
|
|
@ -169,12 +169,6 @@ void CNetwork::setCount(unsigned int count)
|
|||
hash ^= (hash >> 6);
|
||||
}
|
||||
|
||||
for (unsigned int i = 0U; i < m_description.size(); i++) {
|
||||
hash += m_description.at(i);
|
||||
hash += (hash << 10);
|
||||
hash ^= (hash >> 6);
|
||||
}
|
||||
|
||||
// Final avalanche
|
||||
hash += (hash << 3);
|
||||
hash ^= (hash >> 11);
|
||||
|
|
|
|||
Loading…
Reference in a new issue