in reply to Re^10: PDL and srand puzzle
in thread PDL and srand puzzle
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^12: PDL and srand puzzle - PDL::srand/srandom not working
by etj (Priest) on Jun 09, 2024 at 13:08 UTC |