mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
Fixing btests.
- When Bro is given a PRNG seed, it now uses its own internal random number generator that produces consistent results across sytems. Note that this internal generator isn't very good, so it should only be used for testing purposes. - The BTest configuration now sets the environemnt variables TZ=UTC and LANG=C to ensure consistent results. - Fixing doc markup in logging.bro. - Updating baselines.
This commit is contained in:
parent
5fba6d144e
commit
da0ea67453
13 changed files with 163 additions and 124 deletions
|
@ -367,7 +367,7 @@ void net_packet_dispatch(double t, const struct pcap_pkthdr* hdr,
|
|||
if ( load_freq == 0 )
|
||||
load_freq = uint32(0xffffffff) / uint32(load_sample_freq);
|
||||
|
||||
if ( uint32(random() & 0xffffffff) < load_freq )
|
||||
if ( uint32(bro_random() & 0xffffffff) < load_freq )
|
||||
{
|
||||
// Drain the queued timer events so they're not
|
||||
// charged against this sample.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue