Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118263 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 41876 invoked from network); 14 Jul 2022 02:37:08 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 14 Jul 2022 02:37:08 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 59808180506 for ; Wed, 13 Jul 2022 21:32:04 -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_H2,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-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) (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 ; Wed, 13 Jul 2022 21:32:03 -0700 (PDT) Received: by mail-yb1-f172.google.com with SMTP id 75so1292222ybf.4 for ; Wed, 13 Jul 2022 21:32:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Ji0JtR9X5UYtPggSlTDAqyCeBowd3JKxCrgo2CvYN/c=; b=j9g3DDLTxSfXdvo+KEhIOjwWopzp1fy+B0WLjTWbVpnx8Ffl1TuNDZ7FEOrIG/y+Ng lf/yBXBMvMxtnmp6ZY637GB9c8CcAny/hNkZkl+Un9cG8XD4d52BnwjvnSh5QiffQzCY DODUQ3O7SW0b3s8Ajfq8CV1BGStTolPLRaoR+xL/Kck3epV+C2cPyVWCfljicr9hSlY2 +V6sKiL3LgJ4iRqbbnO5I+g+7NHgj/jgV/XsYIRI3HxE1PUX8sIl/O7Okmx9RtvUiIVD +hdqlpsFiFuKVBquD30Ddy73m2TGSHtKgAGPohirp/XJshfOfIXzCPTdpDXSLedrfS0s nUfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Ji0JtR9X5UYtPggSlTDAqyCeBowd3JKxCrgo2CvYN/c=; b=aVO+MxmRIyA9FWiHd8Uo7MMbga5u7h+57Y4wGOTujcr3btJvAtAz/3HjqUdB5i9EnH eow/yvxXUsEANK6fbvb7a769/OPMYEFQZTH9Lk5pM+hX5HLiw3bD8TGgI+BiaWUYHABK N01YdPOfVaBb6LyW62FCCD8Xx7Fllr62i6M15LsYq6MS/gvCdnfghmdUoHvH2xWWl/Gz KWRyRc/TFrrbz29u/YBCxMtq1mE2+K8/7ZKxEHjwdshUAkugH8foOUxSt8ohN/NkqTXJ rrphMEd2la+YrM4xMsgIJjPjwBxRR4SB7nwcAXqRh/X+ElVeuNaOnFkOPPTlkKC2fVmg cmOg== X-Gm-Message-State: AJIora+QMrD43hM0hcZsRbRXQUguqPhjSrW/bj0jdGE/682Ct59tI/r6 9XY5oedfvBdMjUFajIOI2nmmMn7i9p5+etT4SQ== X-Google-Smtp-Source: AGRyM1uzrMWynPmW24dDbu/auJsPd+jbA/iiu+kGxpq2YtafEMMA9NqEGyiB/thqOHRWSePbFehiEFE4OMchN+m3krE= X-Received: by 2002:a25:580b:0:b0:66d:466c:fa79 with SMTP id m11-20020a25580b000000b0066d466cfa79mr6574677ybb.9.1657773123289; Wed, 13 Jul 2022 21:32:03 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:7000:cb8d:0:0:0:0 with HTTP; Wed, 13 Jul 2022 21:32:02 -0700 (PDT) In-Reply-To: References: Date: Thu, 14 Jul 2022 06:32:02 +0200 Message-ID: To: Go Kudo Cc: =?UTF-8?Q?Tim_D=C3=BCsterhus?= , "internals@lists.php.net" Content-Type: multipart/alternative; boundary="00000000000021c6f105e3bc62e4" Subject: Re: [PHP-DEV] [VOTE] Random Extension Improvement From: guilliam.xavier@gmail.com (Guilliam Xavier) --00000000000021c6f105e3bc62e4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thursday, July 14, 2022, Go Kudo wrote: > 2022=E5=B9=B47=E6=9C=8813=E6=97=A5(=E6=B0=B4) 1:10 Tim D=C3=BCsterhus : > >> Hi >> >> On 7/12/22 18:04, Tim D=C3=BCsterhus wrote: >> > I also think that both '$string' and '$binary' are appropriate paramet= er >> > names in this case, so particular preference from my side. >> >> Sorry for the follow-up, there's two mistakes in that sentence. It >> should read: >> >> I also think that both '$string' and **'$bytes'** are appropriate >> parameter names in this case, so **no** particular preference from my >> side. >> >> Best regards >> Tim D=C3=BCsterhus >> > > Hi > > I agree with you. I will change the parameter name from `$string` to > `$bytes` as I don't see any problem. > > I will try to explain the changes more rigorously in future proposals. > Thank you. > > Regards, > Go Kudo > Hi, I was waiting for more opinions but... so here's mine: I would prefer to keep "$string", as [that's how I read the RFCs, and] when calling e.g. shuffleBytes('foobar') I don't feel like I'm passing "bytes" (or "a binary") but a string (to be shuffled byte-wise rather than character-wise or codepoint-wise, but that's from the function, not the argument)... Granted, not compelling, and probably won't matter in practice, but hey ;) Regards PS: sent from mobile --=20 Guilliam Xavier --00000000000021c6f105e3bc62e4--