Date: 08/25/01
- Next message: Jeroen van Wolffelaar: "[PHP-DEV] Re: [PHP-CVS] cvs: php4 / php.ini-dist php.ini-recommended"
- Previous message: rasmus <email protected>: "[PHP-DEV] Bug #12956 Updated: libgd2 + TTF = ugly fonts."
- Next in thread: Jeroen van Wolffelaar: "[PHP-DEV] Re: [PHP-CVS] cvs: php4 / php.ini-dist php.ini-recommended"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> > +; 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?
Yes, and if you would have read my proposal, you would know that this
ini-setting is irrelevant for BC-issues. I even doubt wether it'd be such a
problem anyway: who wants to use the predicability of rand(), which is
always bad anyways? (non-thread safe, unknown by which other functions it is
used, and system-dependent). And who does want to use that, uses (1) an
undocumented feature, and (2) generally knows what he's doing, and is a bit
aware of PHP-internals, and probably knows about this changed when it is in
NEWS.
I am working of a perspective of a not-so-expert user, who uses rand() for
what it says: random numbers. THAT use of it should be as easy as possible,
without 'seeding' (WTF, most new users would say?, why is that needed?)
> tc
Jeroen
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Jeroen van Wolffelaar: "[PHP-DEV] Re: [PHP-CVS] cvs: php4 / php.ini-dist php.ini-recommended"
- Previous message: rasmus <email protected>: "[PHP-DEV] Bug #12956 Updated: libgd2 + TTF = ugly fonts."
- Next in thread: Jeroen van Wolffelaar: "[PHP-DEV] Re: [PHP-CVS] cvs: php4 / php.ini-dist php.ini-recommended"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

