Am 30.08.2013 04:30, schrieb Yasuo Ohgaki: > On Thu, Aug 29, 2013 at 9:00 PM, Ángel González <keis...@gmail.com> wrote: > >> Marc Bennewitz wrote: >> >>> Idea for an RFC for a more powerful (and backward compatible) API of >>> random number generator functions. >>> >>> The following psaudocode is self explained (hopfully) >>> >>> const RAND_ALGO_LIBC >>> const RAND_ALGO_MERSENNE_TWISTER >>> const RAND_ALGO_OPENSSL >>> const RAND_ALGO_GMP >>> >> (...) >> >>> What do you think? >>> >> >> Why do you want them? > > > This proposal is good because we need the best random function available in > a system > with easy to use API. I would like to see the best algorithm in a system as > default. >
Defining the "best" algorithm as the standard default would be great but what is the best algorithm? Some are fast but less secure and other are more secure but slow. Some times ago i read a feature request to implement the mersenne twister algorithm for rand/shuffle/array_rand but this was closed because it would be a bc break. (can't find it new). Best Regards Marc -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php