Add MurmurHash3 implementation to hash.h/add hash.cpp.

This commit is contained in:
Matt Corallo
2013-01-10 13:16:00 -05:00
parent 68feac96b6
commit 7ab026f449
7 changed files with 66 additions and 0 deletions

View File

@@ -10,6 +10,7 @@
#include <openssl/sha.h>
#include <openssl/ripemd.h>
#include <vector>
template<typename T1>
inline uint256 Hash(const T1 pbegin, const T1 pend)
@@ -113,4 +114,6 @@ inline uint160 Hash160(const std::vector<unsigned char>& vch)
return hash2;
}
unsigned int MurmurHash3(unsigned int nHashSeed, const std::vector<unsigned char>& vDataToHash);
#endif