Re: Bug #12550 Updated: rand() and mt_rand() don't behave as documented

From: Date: Mon, 13 Aug 2001 09:04:42 +0000
Subject: Re: Bug #12550 Updated: rand() and mt_rand() don't behave as documented
References: 1  Groups: php.dev php.doc 
Request: Send a blank email to php-dev+get-63057@lists.php.net to get a copy of this message
On Mon, 13 Aug 2001 eschmid+sic@s.netic.de wrote: >On Mon, Aug 13, 2001 at 07:29:16AM +0200, Jani Taskinen wrote: >> >> Now you assume that you need to pass arguments to these functions. >> Which is not the case. Here's the proto: >> >> /* {{{ proto int rand([int min, int max]) >> Returns a random number */ >> >> So revert that patch. mt_rand() / rand() accecpt either 2 parameters or >> none at all. It was at least LESS wrong before. Now it's totally wrong. >> >> --Jani >> >> p.s. Egon, you still haven't explained me why my patch was wrong? > >The prototype in the php[3!4] is ok, but in the PHP manual it was wrong. And now it's okay?! Yeah.. --Jani

« previous php.dev (#63057) next »