mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48: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
|
@ -102,5 +102,5 @@ bool PacketFilter::MatchFilter(const Filter& f, const IP_Hdr& ip,
|
|||
return false;
|
||||
}
|
||||
|
||||
return uint32(random()) < f.probability;
|
||||
return uint32(bro_random()) < f.probability;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue