Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118020 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 26887 invoked from network); 20 Jun 2022 14:14:56 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Jun 2022 14:14:56 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 98D9118054A for ; Mon, 20 Jun 2022 09:03:58 -0700 (PDT) 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,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 20 Jun 2022 09:03:58 -0700 (PDT) Received: by mail-ej1-f51.google.com with SMTP id gl15so22048820ejb.4 for ; Mon, 20 Jun 2022 09:03:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=z9I8kdg0CUrQYI+IrztaKgCJMDsvQfsPaGJ41i9ugLY=; b=e56RKW7KrGKx0BSBQvJJiAEYqesgX9697j5TQRVhq6yDPaRk1qavkIwbUGY8INos6V 6HYbijJPPFXYTpPPeXXGx+h5SoOdFx2NPMX7iFyx48SOS7nfygyVRBe0hfLCxKnRI9oy xuxjoyekHbvsvzigMDDL74rgMyZQIgUo7tY8tGhf9JBsk6nwqXdMKR9Hck6uUVTyYo3R GKpiFS7NU1o2ZJXAgxfBfgv5c9S6DtGL9AZ2ZvVAlqWp2BO50F8WPB+vGvqVA3XDnNuR Z10QVEPHpWsoo3Ro3aH9rcNvO+eEbzSBr0giiv0e2DbVlNuoR0J7C1TXlfvDGtZ7okRp R3zA== 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; bh=z9I8kdg0CUrQYI+IrztaKgCJMDsvQfsPaGJ41i9ugLY=; b=jJI6m8HxoFUGEWqclVFjNk1gFKsgdpL3DEPbyEGzfaKrS18Bcslkr4AX8f9UODIcZz Ic0FbXekcsxpXF+gTAoBzXSTIU2bL4C/JnorCfbeuTZqzJm2k0puHhKYglEDYl7hzwTe R5AEmuPe7R987Tcmyj3/od8Ja97KOdUlB0E2kVWQM630EBKdSGo7DcMLCHcuEDMbo/AQ m0wC4i1+d6pyxKt88RpEdh6OBiUHNyqIhW6ZJT8X9zIQ0WbYMBOrr5ydmYkyE0W6Fzty 2JezCsmH15H18bR986sAqyUZH34meAklA4/ayyRx+jeghjxuWTamBM4ck9iI7sWtM7HD Q0vg== X-Gm-Message-State: AJIora+Df6sY11gq/voyjYfR0B3ymS4qwpzkilNTSWT1GmMP+pbN5ph9 Wt8ieQ+7GJxr2feC/qX6V1x6F5ndwjUVH7cD+5uXt0+g9G4= X-Google-Smtp-Source: AGRyM1s0f1kFFuH9cbXLQXG1hRfJ5x6+uTjk4AjoSTCh8Q0uZ6wwc2s4UULxn2lUQAu++ezo1QikLRILDGwZbbTuYlc= X-Received: by 2002:a17:907:1b14:b0:6ef:a5c8:afbd with SMTP id mp20-20020a1709071b1400b006efa5c8afbdmr22005924ejc.151.1655741033686; Mon, 20 Jun 2022 09:03:53 -0700 (PDT) MIME-Version: 1.0 References: <3fc08765-1419-76ff-d0a6-bf4552dfdc2f@bastelstu.be> In-Reply-To: <3fc08765-1419-76ff-d0a6-bf4552dfdc2f@bastelstu.be> Date: Tue, 21 Jun 2022 01:03:42 +0900 Message-ID: To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= , PHP internals Content-Type: multipart/alternative; boundary="000000000000273d1505e1e340f8" Subject: Re: [PHP-DEV] [RFC] [Under Discussion] Random Extension Improvement From: zeriyoshi@gmail.com (Go Kudo) --000000000000273d1505e1e340f8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 2022=E5=B9=B46=E6=9C=8821=E6=97=A5(=E7=81=AB) 0:42 Tim D=C3=BCsterhus : > Hi > > On 6/20/22 17:12, Go Kudo wrote: > >> CombinedLCG > > > > This is provided as an OOP implementation for the `lcg_value()` functio= n, > > but I don't actually > > want it to be used anymore, so I probably shouldn't provide a class for > it. > > > > And to begin with, the current CombinedLCG cannot even be seeded with > > arbitrary values. > > > > However, I think it needs to remain in the internal API either way. (Th= e > > option of not providing > > it to userland is a valid one.) > > I wouldn't object to dropping CombinedLCG, especially since its internal > parameters are not defined via the name (contrary to MT19937). > > > What do you think about the `Random\CryptoSecureEngine` interface? > > It is just a marker interface with no methods. > > > > However, I currently think it is better than adding a method like > > `isSecure(): bool` > > to the `Random\Engine`. > > > > I *much* prefer the marker interface. > > Best regards > Tim D=C3=BCsterhus > Hi Added option to discontinue CombinedLCG. https://wiki.php.net/rfc/random_extension_improvement I am struggling with the following issue: 1. change `Randomizer::pickArrayKey(array $array, int $num =3D1): int|string|array` to `Randomizer::pickArrayKeys(array $array, in $num): array`. 2. Change the class name to "Always PascalCase" or "PascalCase except Acronyms". I hope I can solve the discussion by e-mail, but if I can't, I will further add it to the RFC options. Best regards, Go Kudo --000000000000273d1505e1e340f8--