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:
Robin Sommer 2011-04-21 19:31:44 -07:00
parent 5fba6d144e
commit da0ea67453
13 changed files with 163 additions and 124 deletions

View file

@ -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;
}