[PHP-DEV] [RFC] [Under Discussion] Random Extension 4.0

2022-02-14 Thread Go Kudo
It's been a while Internals. I'm Go Kudo. First of all, I would like to apologize for leaving my previous RFC, object scoped RNG, and the preliminary RFC, split random extension, without any progress. The implementation of these RFCs was not sophisticated and failed to be tested for a long time.

Re: [PHP-DEV] [RFC] [Under Discussion] Random Extension 4.0

2022-02-14 Thread Tim Düsterhus
Hi On 2/14/22 12:11, Go Kudo wrote: The refreshed RFC and implementation are available at the following URL: https://wiki.php.net/rfc/rng_extension https://github.com/php/php-src/pull/8094 If there are no specific comments, I would like to start voting as soon as the two-week pre-announcement

Re: [PHP-DEV] [RFC] [Under Discussion] Random Extension 4.0

2022-02-14 Thread Go Kudo
2022年2月14日(月) 20:40 Tim Düsterhus : > Hi > > On 2/14/22 12:11, Go Kudo wrote: > > The refreshed RFC and implementation are available at the following URL: > > > > https://wiki.php.net/rfc/rng_extension > > https://github.com/php/php-src/pull/8094 > > > > If there are no specific comments, I would

Re: [PHP-DEV] [RFC] [Under Discussion] Random Extension 4.0

2022-02-14 Thread Tim Düsterhus
Hi On 2/14/22 15:53, Go Kudo wrote: 1) XorShift128+ has a 128 Bit internal state, but takes an integer seed within the constructor. Thus only 64 Bits of seed can be provided. This is for convenience. Other software that uses XorShift128+, such as Chromium (V8), also uses a 64-bit value for the

Re: [PHP-DEV] [RFC] [Under Discussion] Random Extension 4.0

2022-02-14 Thread Tim Düsterhus
Hi On 2/14/22 16:44, Tim Düsterhus wrote: Unfortunately your PR doesn't compile for me, so I can't test: make: *** No rule to make target 'php-src/ext/standard/lcg.c', needed by 'ext/standard/lcg.lo'. Stop. I've managed to compile it by cleaning the whole directory and rerunning of the buil

Re: [PHP-DEV] [RFC] [Under Discussion] Random Extension 4.0

2022-02-14 Thread Go Kudo
2022年2月15日(火) 1:46 Tim Düsterhus : > Hi > > On 2/14/22 16:44, Tim Düsterhus wrote: > > Unfortunately your PR doesn't compile for me, so I can't test: > > > > make: *** No rule to make target 'php-src/ext/standard/lcg.c', needed by > > 'ext/standard/lcg.lo'. Stop. > > I've managed to compile it by