Fix random rules generator seeding
This commit is contained in:
@@ -369,15 +369,6 @@ int main (int argc, char **argv)
|
||||
set_cpu_affinity (user_options->cpu_affinity);
|
||||
}
|
||||
|
||||
if (user_options->rp_gen_seed_chgd == false)
|
||||
{
|
||||
srand (user_options->rp_gen_seed);
|
||||
}
|
||||
else
|
||||
{
|
||||
srand (proc_start);
|
||||
}
|
||||
|
||||
/**
|
||||
* logfile init
|
||||
*/
|
||||
@@ -803,6 +794,19 @@ int main (int argc, char **argv)
|
||||
opencl_ctx->force_jit_compilation = 1500;
|
||||
}
|
||||
|
||||
/**
|
||||
* prepare seeding for random number generator used from random rules generator
|
||||
*/
|
||||
|
||||
if (user_options->rp_gen_seed_chgd == true)
|
||||
{
|
||||
srand (user_options->rp_gen_seed);
|
||||
}
|
||||
else
|
||||
{
|
||||
srand (proc_start);
|
||||
}
|
||||
|
||||
/**
|
||||
* load rules
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user