Support UHF hashing for >= UHASH_KEY_SIZE bytes.

This commit is contained in:
Matthias Vallentin 2013-08-01 19:15:28 +02:00
parent 2a0790c231
commit 34965b4e77
2 changed files with 22 additions and 6 deletions

View file

@ -123,9 +123,9 @@ public:
* Constructs an H3 hash function seeded with a given seed and an
* optional extra seed to replace the initial Bro seed.
*
* @param seed The seed to use for this instance.
* @param arg_seed The seed to use for this instance.
*/
UHF(size_t seed = 0);
UHF(size_t arg_seed = 0);
template <typename T>
Hasher::digest operator()(const T& x) const
@ -171,6 +171,7 @@ private:
static size_t compute_seed(size_t seed);
H3<Hasher::digest, UHASH_KEY_SIZE> h;
size_t seed;
};