diff options
| author | Matt Corallo <[email protected]> | 2013-01-10 13:16:00 -0500 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2013-01-16 12:48:01 -0500 |
| commit | 7ab026f4493b145f2255d816864cb1a3486e0788 (patch) | |
| tree | 72a9b123331434c3ac8f2cf837692f6ec3413793 /src/hash.h | |
| parent | Add const versions of base_uint.end()/begin(), make size() const. (diff) | |
| download | discoin-7ab026f4493b145f2255d816864cb1a3486e0788.tar.xz discoin-7ab026f4493b145f2255d816864cb1a3486e0788.zip | |
Add MurmurHash3 implementation to hash.h/add hash.cpp.
Diffstat (limited to 'src/hash.h')
| -rw-r--r-- | src/hash.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hash.h b/src/hash.h index bc013139b..eaa1780c0 100644 --- a/src/hash.h +++ b/src/hash.h @@ -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 |