mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
Support UHF hashing for >= UHASH_KEY_SIZE bytes.
This commit is contained in:
parent
2a0790c231
commit
34965b4e77
2 changed files with 22 additions and 6 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue