Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117301 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 88366 invoked from network); 11 Mar 2022 09:47:25 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 Mar 2022 09:47:25 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C2FAA180505 for ; Fri, 11 Mar 2022 03:11:05 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-yb1-f175.google.com (mail-yb1-f175.google.com [209.85.219.175]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 11 Mar 2022 03:11:05 -0800 (PST) Received: by mail-yb1-f175.google.com with SMTP id x200so16455816ybe.6 for ; Fri, 11 Mar 2022 03:11:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=colopl.co.jp; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NX8bvtyZDP+jAuVBTuhplJM+qPeDoTfySI3drF/gLX4=; b=Noym9IWoy2lKb3BKtSsdGLpq7F5nvokHjzi8RDzL1Irfi2P1p+pIWUJ+yZw4uuabqL LKXno4SDl0pmUwaV3gtXLGbwdsBXitJSxhfsPX9VF0cavJIDrhfWcG4YTesfdp/g0QB0 UUWzobbZJ/yN0IZqGSprzcp88MLnKH0Ey5AHtF2ibek6IPN42iXgQDt2E6S60u7iXR57 sj4XE12fuyamT4stPpgJA+AwJGREhdBix+Yea6szHL7mqc7I7QBp36aydd1en+apoifL iVQV5xESGIVsBUC2TvJ0rLg6xFwoCFc5C4mUAOQJKU+ytGYrnE5T+nuvV247nbNMK9u0 Zx6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NX8bvtyZDP+jAuVBTuhplJM+qPeDoTfySI3drF/gLX4=; b=alN1tYDhERg/PcerSIVxB3ExqY9+5MRs4mfY9pu45ZtzHSKI0dKrcw+hJ/VeGvT8wQ cJ54hTPHSLnr/rk+uq2AwY/L0QAhPTOeXji24Pdt/aQtt4FHrxgJMwcZuNePh1eX1/1n LPaOoc2pN5fTi4A8/w2bhm4mOKO1XYQMSr9FcXiqp3gQutGb85/F67OAJEf+WyozLqJs hW/Yz5HLlAbd6EKQVaQ2CyPhVoprC+xU/Qmnjscn5zIXlYWxShfN6cVhR8dkqGsrRnvh 757KcpikKS9ETR2hkpK26LYnZxnKhm881xpJ/ByGChP+t7ziCo4EVts4kSueLDt8Kk2A aNbQ== X-Gm-Message-State: AOAM532BJYJAxUnqtwoa8Z3BjMr9dKO3B7R/oN9QuE6rfJxqbWYBnTNJ EWz2v18wG8NJOXSwtM1BUkPmssqCo8DYDCF9FIXmru+TFETC X-Google-Smtp-Source: ABdhPJxEXosqA0LRY25risQ1f9gphLlvnoGbF7h0iJmARKZT/ZDg9Zl0KkQwjdpUbtHA59SHlTjYL/YtcLnMkyFuJF0= X-Received: by 2002:a25:8c84:0:b0:628:7c16:a36b with SMTP id m4-20020a258c84000000b006287c16a36bmr7857390ybl.2.1646997064393; Fri, 11 Mar 2022 03:11:04 -0800 (PST) MIME-Version: 1.0 References: <540c90b6-39cc-8cae-7912-602e5bf559c6@bastelstu.be> In-Reply-To: <540c90b6-39cc-8cae-7912-602e5bf559c6@bastelstu.be> Date: Fri, 11 Mar 2022 20:10:53 +0900 Message-ID: To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000f8431705d9ef62e8" Subject: Re: [PHP-DEV] [RFC] [Under Discussion] Random Extension 5.x From: g-kudo@colopl.co.jp (Go Kudo) --000000000000f8431705d9ef62e8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 2022=E5=B9=B43=E6=9C=8810=E6=97=A5(=E6=9C=A8) 3:57 Tim D=C3=BCsterhus : > Hi > > On 3/9/22 11:48, Go Kudo wrote: > > Proposed RFCs and implementations have been reorganized. The main chang= es > > are as follows > > > > https://wiki.php.net/rfc/rng_extension > > https://github.com/php/php-src/pull/8094 > > > > I've compared the RFC against the implementation once more: > > - The RFC should clarify that returning an empty string in > Engine::generate() is not allowed. > - The corresponding test > 'ext/random/tests/03_randomizer/user_unsafe.phpt' should verify not just > an exception is thrown, but also the exception message (I'll add a > review comment). > > - PCG64 effectively has 256 Bits of internal state (128 Bits for 's' and > 128 Bits for 'inc'), but it only accepts 128 Bits for 's'. 'inc' cannot > be provided by the user. The purpose of 'inc' is not entirely clear to > me, but the user likely should be able to specify it for full > reproducibility. > - The default initialization of PCG64 with a null seed will fill 'inc', > not 's'. This likely is a bug? At least it's inconsistent with the > previous point. > > - The RFC is missing an explanation of the guarantees the implementation > will (or will not) make. This is important for the user if they are > relying on reproducibility of the sequences and outputs. The more > guarantees we give, the less can be changed in the future. I've > previously mentioned that in the thread for '4.x': > https://externals.io/message/117026#117061 > > Best regards > Tim D=C3=BCsterhus > Hi Tim Sorry, I must have missed some of your emails. We will make corrections to the areas you pointed out. I will reply to your email first as I am not familiar with English and it may take a little time= . Thank you! --000000000000f8431705d9ef62e8--