Hi Yasuo,
Some times ago I mailed my idea about refactoring random number
generator API with min BC breaks but I didn't create an RFC right now.
see http://marc.info/?l=php-internals&m=137772363015217
Marc
On 16.07.2014 07:13, Yasuo Ohgaki wrote:
Hi all,
There are few places that uses php_
On 16 Jul 2014, at 21:28, Yasuo Ohgaki wrote:
> I'll add rand() rename option for upcoming RFC.
> rand() to lagacy_rand()/rand_legacy()/rand_system(), perhaps? The name can be
> any.
> Suggestions are appreciated.
IIRC isn’t rand() implemented using the C function? In that case, c_rand()
perh
Hi,
On Thu, Jul 17, 2014 at 3:00 AM, Andrea Faulds wrote:
> > Do you propose making rand() a synonym for mt_rand()? If so, wouldn't it
> make sense for srand() to become a synonym for mt_srand()?
>
> Whether that’s what Yasuo proposes or not, I’d like to see this. It’s
> rather silly that rand()
On 16 Jul 2014, at 18:56, Rowan Collins wrote:
> Do you propose making rand() a synonym for mt_rand()? If so, wouldn't it make
> sense for srand() to become a synonym for mt_srand()?
Whether that’s what Yasuo proposes or not, I’d like to see this. It’s rather
silly that rand() isn’t the prope
Yasuo Ohgaki wrote (on 16/07/2014):
The only BC issue I can think of is game that expects the same pseudo
random sequences. These apps may use mt_srand() to get fixed random
sequences and adjust their apps if it is needed. This is acceptable BC
for new releases. IMO.
Do you propose making rand(