Skip to content

Commit

Permalink
Improve support for PDL
Browse files Browse the repository at this point in the history
  • Loading branch information
marioroy committed Jun 9, 2024
1 parent 207ab02 commit 99ead18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/MCE.pm
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ sub spawn {
# silently clobbers Perl's srand function, and does not seed Perl's
# pseudo-random generator. https://perlmonks.org/?node_id=11159773

if ( $INC{'PDL/Primitive.pm'} && PDL::Primitive->can('srand') ) {
if ( $INC{'PDL/Primitive.pm'} ) {
# Call PDL's random() function if exported i.e. use PDL.

my $caller = caller(); local $@;
Expand Down
2 changes: 1 addition & 1 deletion lib/MCE/Child.pm
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ sub init {
# silently clobbers Perl's srand function, and does not seed Perl's
# pseudo-random generator. https://perlmonks.org/?node_id=11159773

if ( $INC{'PDL/Primitive.pm'} && PDL::Primitive->can('srand') ) {
if ( $INC{'PDL/Primitive.pm'} ) {
# Call PDL's random() function if exported i.e. use PDL.

my $caller = caller(); local $@;
Expand Down

0 comments on commit 99ead18

Please sign in to comment.