mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 11:38:20 +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
|
@ -93,8 +93,8 @@ HashPolicy::HashVector DefaultHashing::Hash(const void* x, size_t n) const
|
|||
|
||||
HashPolicy::HashVector DoubleHashing::Hash(const void* x, size_t n) const
|
||||
{
|
||||
HashType h1 = hasher1_(x);
|
||||
HashType h2 = hasher2_(x);
|
||||
HashType h1 = hasher1_(x, n);
|
||||
HashType h2 = hasher2_(x, n);
|
||||
HashVector h(K(), 0);
|
||||
for ( size_t i = 0; i < h.size(); ++i )
|
||||
h[i] = h1 + i * h2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue