mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Fix hasher usage and narrow interface.
This commit is contained in:
parent
7ce986e31f
commit
fcf1807fc8
2 changed files with 3 additions and 11 deletions
|
@ -96,15 +96,7 @@ protected:
|
|||
*/
|
||||
class Hasher {
|
||||
public:
|
||||
template <typename T>
|
||||
HashType operator()(const T& x) const
|
||||
{
|
||||
return h3_(&x, sizeof(x));
|
||||
}
|
||||
HashType operator()(const void* x, size_t n) const
|
||||
{
|
||||
return h3_(x, n);
|
||||
}
|
||||
HashType operator()(const void* x, size_t n) const { return h3_(x, n); }
|
||||
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