Re: [PHP-DEV] Re: [RFC: PATCH v1] Implement mt_srand_array

2016-08-20 Thread Lauri Kenttä
On 2016-08-19 21:41, Nikita Popov wrote: Instead, let's first introduce an object-based PRNG interface, which a) does not rely on volatile global state and b) is explicit about the choice of algorithm and seeding procedure. That would be a nice solution. However, that's a task for someone who a

Re: [PHP-DEV] Re: [RFC: PATCH v1] Implement mt_srand_array

2016-08-19 Thread Nikita Popov
On Fri, Aug 19, 2016 at 8:20 PM, Lauri Kenttä wrote: > On 2016-08-15 18:53, Tom Worster wrote: > >> Hi Lauri, >> >> Do you have a PR against php-src on github? It's easier to read and >> comment. >> >> Tom >> > > > Here's a PR with a revised patch (also accepts other than pure integers): > > http

[PHP-DEV] Re: [RFC: PATCH v1] Implement mt_srand_array

2016-08-19 Thread Lauri Kenttä
On 2016-08-15 18:53, Tom Worster wrote: Hi Lauri, Do you have a PR against php-src on github? It's easier to read and comment. Tom Here's a PR with a revised patch (also accepts other than pure integers): https://github.com/php/php-src/pull/2089 And here's an alternative with no sanit

[PHP-DEV] Re: [RFC: PATCH v1] Implement mt_srand_array

2016-08-15 Thread Tom Worster
Hi Lauri, Do you have a PR against php-src on github? It's easier to read and comment. Tom -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php