diff --git a/misc/workers/background_jobs_worker.pl b/misc/workers/background_jobs_worker.pl index c54610458f..7d2c4f3876 100755 --- a/misc/workers/background_jobs_worker.pl +++ b/misc/workers/background_jobs_worker.pl @@ -135,6 +135,7 @@ while (1) { } $pm->start and next; + srand(); # ensure each child process begins with a new seed process_job( $job, $args ); $pm->finish; @@ -152,6 +153,7 @@ while (1) { next unless $args; $pm->start and next; + srand(); # ensure each child process begins with a new seed process_job( $job, { job_id => $job->id, %$args } ); $pm->finish;