Re: cvs: php4 / php.ini-dist php.ini-recommended
| From: | Jani Taskinen | Date: | Sat, 25 Aug 2001 13:48:23 +0000 |
| Subject: | Re: cvs: php4 / php.ini-dist php.ini-recommended | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-64307@lists.php.net to get a copy of this message | ||
On 25 Aug 2001, Thies C. Arntzen wrote:
>On 25 Aug 2001 00:11:02 +0000, Jeroen van Wolffelaar wrote:
>> jeroen Fri Aug 24 20:11:02 2001 EDT
>>
>> Modified files:
>> /php4 php.ini-dist php.ini-recommended
>> Log:
>> Add random number generator-entry to INI-files
>>
>>
>> Index: php4/php.ini-dist
>> diff -u php4/php.ini-dist:1.94 php4/php.ini-dist:1.95
>> --- php4/php.ini-dist:1.94 Tue Aug 14 16:23:25 2001
>> +++ php4/php.ini-dist Fri Aug 24 20:11:01 2001
>> @@ -117,6 +117,13 @@
>> ; reference).
>> allow_call_time_pass_reference = On
>>
>> +; Default random number generator. Specify here which random number generator
>> +; you want to use for the PHP-rand() function. Usually MT (Mersenne Twister,
>> +; see http://www.php.net/manual/en/function.mt-rand.php)
>> is the best choice.
>> +; It is thread-safe, fast, and, quite important, mod and divide-free.
>> +; Possible values are 'system', 'mt' and 'lcg'
>> +random_number_generator = mt
>
>shouldn't the default be the backward compatible one?
>
Better question is, do we really want to do this?
This doesn't fix anything. It only breaks things.
Second, this will make writing portable scripts harder.
Yet another ini setting to be checked for..
The only good way of doing this rand() -> mt_rand() change would
have been my way (tm) which was rejected. ie. using the mt_* always.
--Jani