in reply to Re^2: Legacy code uses "srand()" .. how to avoid losing entropy?
in thread Legacy code uses "srand()" .. how to avoid losing entropy?
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.
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Legacy code uses "srand()" .. how to avoid losing entropy?
by furry_marmot (Pilgrim) on May 03, 2011 at 17:45 UTC |