diff options
Diffstat (limited to 'lib/Smokeping')
-rw-r--r-- | lib/Smokeping/probes/basefork.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Smokeping/probes/basefork.pm b/lib/Smokeping/probes/basefork.pm index 0de7b6d..ed8fda8 100644 --- a/lib/Smokeping/probes/basefork.pm +++ b/lib/Smokeping/probes/basefork.pm @@ -201,6 +201,9 @@ sub ping { # we detach from the parent's process group setpgrp(0, $$); + # re-initialize the RNG for each subprocess + srand(time()+$$); + my @times = $self->pingone($t); print join(" ", @times), "\n"; exit; |