Re: A patch to get rid of system rand/srand/etc.

From: Date: Sat, 04 Aug 2001 22:43:49 +0000
Subject: Re: A patch to get rid of system rand/srand/etc.
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-62101@lists.php.net to get a copy of this message
On Fri, 3 Aug 2001, Rasmus Lerdorf wrote: >> > >> > This patch will replace PHP functions srand() / rand() / getrandmax() >> > with the mt_*() ones. The mt_*() are changed to aliases. >> > >> > If nobody objects, I will commit this tomorrow. >> >> I object. srand/rand are deterministic and usually portable >> algorithms (i.e. with the same seed, the return results of >> rand are the same) which certain programs rely on. There >> might be some scripts out there which use this feature, >> either for themselves or in order to communicate/synchronize >> with programs written in C. > >I have code which relies on this in the regression test harness for it. Ah. Let's forget about it then. I wasn't aware of this. Could you show me this example?? --Jani

« previous php.dev (#62101) next »