Commit 1e809637 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

refactor(backend): random seed on fork

parent cdd84790
......@@ -2302,6 +2302,7 @@ sub _execute {
if ( $pid == 0 ) {
$request->status('working','');
my $t0 = [gettimeofday];
srand();
$self->_do_execute_command($sub, $request);
my $elapsed = tv_interval($t0,[gettimeofday]);
$request->run_time($elapsed) if !$request->run_time();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment