RFC: mt_* functions

From: Date: Sat, 04 Aug 2001 20:26:49 +0000
Subject: RFC: mt_* functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-62084@lists.php.net to get a copy of this message
Hi, Currently, the rand_functions all have mt_ clones, which use a in-PHP-implementation (Mersenne-Twister) rather than an external implementation. This is IMHO a bit strange way of chosing between implementation. My suggestion is to make it only one familiy of functions, the implementation of which is determined by an ini-entry. (rand = system vs. rand = mt, or something like that, default: mt). The functionality is the same (*), and IMO it's a per-system-decision wether you want to use the mt-algorithms or the system ones. (usually mt, unless your system has a real good / very special one) For backwards compatibility, mt_* can be aliased to their normal equivalents. Greetz, Jeroen (*) as far as you can speak of functionality in this context

« previous php.dev (#62084) next »