Temporarily back out this hash change.

This commit is contained in:
JoelKatz
2013-03-03 05:55:14 -08:00
parent 87bd9ed78f
commit 15b6fbed0b

View File

@@ -24,10 +24,13 @@ DECLARE_INSTANCE(SHAMapTreeNode);
void SHAMapNode::setHash() const
{
std::size_t h = theApp->getNonceST() + (mDepth * 0x9e3779b9);
mHash = mNodeID.hash_combine(h);
#if 0
const unsigned int *ptr = reinterpret_cast<const unsigned int *>(mNodeID.begin());
for (int i = (mDepth + 3) / 4; i >= 0; --i)
boost::hash_combine(h, *ptr++);
mHash = h;
#endif
}
std::size_t hash_value(const SHAMapNode& mn)