diff options
author | Pieter Wuille <pieter@wuille.net> | 2020-06-18 16:44:32 -0700 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2020-07-30 13:57:54 -0700 |
commit | 0ef97b1b103231db54e04a64bbdb5dcc3f34f482 (patch) | |
tree | 6cfe11145d77336221d78659a9d4266b257b8e1b /src/hash.cpp | |
parent | e549bf8a9afae42fcda805e216a1cde62df195a6 (diff) |
Make MurmurHash3 consume Spans
Diffstat (limited to 'src/hash.cpp')
-rw-r--r-- | src/hash.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hash.cpp b/src/hash.cpp index 26150e5ca8..4c09f5f646 100644 --- a/src/hash.cpp +++ b/src/hash.cpp @@ -12,7 +12,7 @@ inline uint32_t ROTL32(uint32_t x, int8_t r) return (x << r) | (x >> (32 - r)); } -unsigned int MurmurHash3(unsigned int nHashSeed, const std::vector<unsigned char>& vDataToHash) +unsigned int MurmurHash3(unsigned int nHashSeed, Span<const unsigned char> vDataToHash) { // The following is MurmurHash3 (x86_32), see http://code.google.com/p/smhasher/source/browse/trunk/MurmurHash3.cpp uint32_t h1 = nHashSeed; |