mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Support seeding for hashers.
This commit is contained in:
parent
d2d8aff814
commit
1576239f67
2 changed files with 14 additions and 1 deletions
|
@ -96,7 +96,9 @@ protected:
|
|||
*/
|
||||
class Hasher {
|
||||
public:
|
||||
HashType operator()(const void* x, size_t n) const { return h3_(x, n); }
|
||||
Hasher(size_t seed);
|
||||
|
||||
HashType operator()(const void* x, size_t n) const;
|
||||
private:
|
||||
// FIXME: The hardcoded value of 36 comes from UHASH_KEY_SIZE defined in
|
||||
// Hash.h. I do not know how this value impacts the hash function behavior
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue