Re: [PHP-DEV] Improving PRNG implementation.

2020-12-16 Thread zeriyoshi
On Wed, Dec 16, 2020 at 4:56 PM Sara Golemon wrote: > Welcome! I'm about to knock down your suggestion a little, but please take it as constructive feedback. OK, You're welcome. And sorry for replying directly to you by mistake. > Can you clarify what object handling provides? Is the intent to

Re: [PHP-DEV] Improving PRNG implementation.

2020-12-16 Thread Nikita Popov
On Wed, Dec 16, 2020 at 4:56 PM Sara Golemon wrote: > On Wed, Dec 16, 2020 at 8:46 AM zeriyoshi wrote: > > Nice to meet you, internals. > > > > Welcome! I'm about to knock down your suggestion a little, but please take > it as constructive feedback. > > > First , PHP has the historical Mersenne

Re: [PHP-DEV] Improving PRNG implementation.

2020-12-16 Thread Sara Golemon
On Wed, Dec 16, 2020 at 8:46 AM zeriyoshi wrote: > Nice to meet you, internals. > Welcome! I'm about to knock down your suggestion a little, but please take it as constructive feedback. > First , PHP has the historical Mersenne Twister PRNG. However, this > implementation keeps its state in a gl

[PHP-DEV] Improving PRNG implementation.

2020-12-16 Thread zeriyoshi
Nice to meet you, internals. PHP 8.0 has been released. With the inclusion of JIT, PHP is about to be extended beyond the web. So I'd like to make a few suggestions. First , PHP has the historical Mersenne Twister PRNG. However, this implementation keeps its state in a global and cannot be handl