Use SipHash-2-4 for CCoinsCache index

This is ~1.7x slower than the Lookup3-of-Xor-with-salt construct we were
using before, but it is a primitive designed for exactly this.
This commit is contained in:
Pieter Wuille
2016-05-06 20:47:12 +02:00
parent 0b1295b066
commit 382c871d28
4 changed files with 13 additions and 76 deletions

View File

@@ -140,11 +140,6 @@ public:
{
return ReadLE64(data);
}
/** A more secure, salted hash function.
* @note This hash is not stable between little and big endian.
*/
uint64_t GetHash(const uint256& salt) const;
};
/* uint256 from const char *.