![]() |
|
"be consistent" | |
PerlMonks |
Re^11: PDL and srand puzzle - PDL::srand/srandom not workingby marioroy (Prior) |
on Jun 08, 2024 at 06:40 UTC ( [id://11159831]=note: print w/replies, xml ) | Need Help?? |
See my reply to Rob. In short, calling PDL::srandom before spawning workers has no effect. The workaround is to call CORE::srand instead. See also, non-thread testing. Edit: MCE checks for PDL::Primitive->can('srand'), but missed checking PDL::Primitive->can('srandom'). Resolved in MCE v1.894 and MCE::Shared v1.889.
In Section
Seekers of Perl Wisdom
|
|