in reply to srand(time^$$) is bad.
in thread Multi-Threaded Elevator Simulator

Also, on newer perls, rand() will seed for you if it hasn't been seeded yet, using a good seed.


Confession: It does an Immortal Body good.

Replies are listed 'Best First'.
Re: Re: srand(time^$$) is bad.
by samtregar (Abbot) on Aug 07, 2002 at 14:33 UTC
    Ah, well that makes things much easier. Since this program requires 5.8.0 I can just drop the srand() call altogether.

    Thanks!
    -sam