mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +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
|
@ -175,7 +175,7 @@ extern bool have_random_seed();
|
|||
|
||||
// A simple linear congruence PRNG. It takes its state as argument and
|
||||
// returns a new random value, which can serve as state for subsequent calls.
|
||||
long int bro_prng(long int state);
|
||||
unsigned int bro_prng(unsigned int state);
|
||||
|
||||
// Replacement for the system random(), to which is normally falls back
|
||||
// except when a seed has been given. In that case, the function bro_prng.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue