mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Fixing random number generation so that it returns same numbers as
before. That broke a lot of tests.
This commit is contained in:
parent
599dadf30b
commit
d8226169b8
3 changed files with 16 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue