Skip to content

Commit

Permalink
Preserve functionality
Browse files Browse the repository at this point in the history
Let's not forget older Perl, non-threads.
  • Loading branch information
marioroy committed Jun 8, 2024
1 parent dc32cfd commit 50f29b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MCE.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2049,7 +2049,7 @@ sub _dispatch {
my $_wid = $_args[1];
my $_seed = abs($self->{_seed} - ($_wid * 100000)) % 2147483560;

CORE::srand($_seed) if ($] ge '5.020000'); # drand48
CORE::srand($_seed) if (!$self->{use_threads} || $] ge '5.020000'); # drand48
Math::Prime::Util::srand($_seed) if $INC{'Math/Prime/Util.pm'};

if (!$self->{use_threads}) {
Expand Down

0 comments on commit 50f29b0

Please sign in to comment.