mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
Remove the -K/-J options for setting keys.
The options were never really used and do not seem especially useful; initialization with a seed file still works. This also fixes a bug with the initialization of the siphash key.
This commit is contained in:
parent
313647ce0e
commit
499ed5b566
6 changed files with 19 additions and 26 deletions
|
@ -1,2 +1,3 @@
|
|||
Ok error
|
||||
171249.90868
|
||||
171249.90868
|
||||
Ok error
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
# Test the quality of HLL once by checking adding a large number of IP entries.
|
||||
#
|
||||
# @TEST-EXEC: bro %INPUT > out
|
||||
# @TEST-EXEC: BRO_SEED_FILE="" bro %INPUT >> out
|
||||
# @TEST-EXEC: BRO_SEED_FILE="" bro %INPUT > out2
|
||||
# @TEST-EXEC: head -n1 out2 >> out
|
||||
# @TEST-EXEC: btest-diff out
|
||||
|
||||
event bro_init()
|
||||
|
@ -15,5 +16,10 @@ event bro_init()
|
|||
hll_cardinality_add(cp, count_to_v4_addr(base+i));
|
||||
}
|
||||
|
||||
if ( |hll_cardinality_estimate(cp) - 170000| > 10000 )
|
||||
print "Big error";
|
||||
else
|
||||
print "Ok error";
|
||||
|
||||
print hll_cardinality_estimate(cp);
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
3912865238
|
||||
3596260151
|
||||
517973768
|
||||
3606168384
|
||||
119014752
|
||||
1013039866
|
||||
2458585167
|
||||
1462428821
|
||||
0
|
||||
2278350848
|
||||
32767
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue