in reply to Legacy code uses "srand()" .. how to avoid losing entropy?
How about using a custom PRNG for your own needs, which is not affected by these srand calls? I'm sure CPAN offers a lot of modules for that purpose.