1
0
Fork 0

Change the hash calculation slightly.

ycs232-kbc
Jonathan Naylor 9 years ago
parent b8f0036fb5
commit 02b6f5342e

@ -169,12 +169,6 @@ void CNetwork::setCount(unsigned int count)
hash ^= (hash >> 6); 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 // Final avalanche
hash += (hash << 3); hash += (hash << 3);
hash ^= (hash >> 11); hash ^= (hash >> 11);

Loading…
Cancel
Save