Re: cvs: php4 /ext/standard rand_mt.c rand_sys.c
| From: | Jeroen van Wolffelaar | Date: | Wed, 05 Sep 2001 21:38:30 +0000 |
| Subject: | Re: cvs: php4 /ext/standard rand_mt.c rand_sys.c | ||
| References: | 1 2 3 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-7233@lists.php.net to get a copy of this message | ||
> On Mon, 03 Sep 2001, Jeroen van Wolffelaar wrote:
> > array_rand was buggy anyway (the algorithm is wrong), so instead of
wasting
> > my time on a half-done patch, I rather fix the real problem, i.e.
implement
> > an other algorithm. And to freely quote Zeev:
>
> I haven't heard complaints that array_rand() was bogus. Explain, please.
Just look at the algorithm and you'll see at once it is bogus. Only in the
special case that one single key is requested it is correct.
Proving it's bogus is trivial, so I'll leave that as an exercise to the
reader (I'm serious).
--jeroen