Fixing random number generation so that it returns same numbers as

before.

That broke a lot of tests.
This commit is contained in:
Robin Sommer 2013-07-24 16:34:52 -07:00
parent 599dadf30b
commit d8226169b8
3 changed files with 16 additions and 4 deletions

View file

@ -829,7 +829,7 @@ bool have_random_seed()
return bro_rand_determistic;
}
long int bro_prng(long int state)
unsigned int bro_prng(unsigned int state)
{
// Use our own simple linear congruence PRNG to make sure we are
// predictable across platforms.