more useful options | |
PerlMonks |
Re^3: Legacy code uses "srand()" .. how to avoid losing entropy?by sundialsvc4 (Abbot) |
on May 03, 2011 at 16:00 UTC ( [id://902743]=note: print w/replies, xml ) | Need Help?? |
Since I can’t rely upon “that version of Perl,” my present train(-wreck) of thought is to either bring in a separate random-number object for this purpose, or to do the “re-seed with a random number picked just before re-seeding” strategy described earlier. (It is good to know that Perl is getting this “return the previous seed value” capability, as many other languages do have it, but it’s too late for this (cr)app.) Thanks for your inputs, one and all. Now, back to the coal-mines.
In Section
Seekers of Perl Wisdom
|
|