Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115345 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 61148 invoked from network); 7 Jul 2021 12:11:04 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 7 Jul 2021 12:11:04 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0B6E61804D1 for ; Wed, 7 Jul 2021 05:33: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_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 ; Wed, 7 Jul 2021 05:33:03 -0700 (PDT) Received: by mail-ej1-f52.google.com with SMTP id b2so2991194ejg.8 for ; Wed, 07 Jul 2021 05:33:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=xUddkH9yvua7rpPJhpaucOMbNBwxTD81jssvHrx503Q=; b=sct2v1LrS+GjIpZBOnJC2/y3yI2k0dEeqGFPibhlCShhSkdd0KsB2bb+uvvmXXLcxR OVU+OINRwlguWIiPvdo6v4Wn95l9vEccDeagmpXQQmaDWJB9u70qq37jUR1Rlg34yN/D ifg87kquGGcN4crEQlL7LW8i3yZSQaxQOh0yTZWCgR8MpQLDe/O+xMo3LWo74+Z+yAjA etYyupJNcVnbh125tLrBzcZPbJTt0cYtGfsYQJs+bdjp1Ml9qxe/eAcdFesPq1ta2Rqt W69ggoZe/33QGVg3dH8TmqLiD+xXjABhZd4RCBmART21Iy9OmwR+0GxQxe8hjOpM3ibW Sw5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=xUddkH9yvua7rpPJhpaucOMbNBwxTD81jssvHrx503Q=; b=gCK0+k4rJ2NP9vL6YRVPE3/t3fCMh+arU23EoBiMW7M6iN67Zkv8Vhi7t19TaRIOwa lw1+0oGuUWHP3HM5OZoroZBkezCVSszeD++lCK7p2eli4zyWVc9xT5OjPs6/Cl0iYjwm 8NN3DpbnY/dsN/b8ME8q2j8DmqR/yy84q96Gtj6rZUG4nalN7Wf10O8Yz8/XmKM15JxO 3y95JYcLauYktArw5q3szhHA3ZB28kljfvnHrSCuQRgCwrhb1KYGlQKKJLsX2nnK1mx/ KM81A37qA3ekHGCBgTmMp/mYW5KgeOiztjdKQAOoeweVRXWKOoQ/LEEE5PLaoLD1UddT aq7w== X-Gm-Message-State: AOAM5303rz27mtoqWotQGtAYFM6KmQfpWU7LINqTMBkPm7VkcW8zhp6W jqXByuD6YKMrRPuTMtYfCmMI0BbsXJ8R3QBBWRA= X-Google-Smtp-Source: ABdhPJxaeJ6J6US4CSqDZSRmnuTn8SbIUTRBkePmh6PkteH67hGOMI03TrhEwx2TqTwyQo1aJV6i86khhRJ+KiUlAWc= X-Received: by 2002:a17:907:3f13:: with SMTP id hq19mr23394625ejc.396.1625661181487; Wed, 07 Jul 2021 05:33:01 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 7 Jul 2021 21:32:50 +0900 Message-ID: To: Nikita Popov , PHP internals , Remi Collet Content-Type: multipart/alternative; boundary="0000000000003f6e3e05c687bd94" Subject: Re: [PHP-DEV] [RFC] Add Random Extension (before: Add Random class) From: zeriyoshi@gmail.com (Go Kudo) --0000000000003f6e3e05c687bd94 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Incidentally, what would be the preferred name for the ext/standard random? I was going to rename it to random_func, but I have a feeling that would be controversial. - random_func.c / php_random_func.h / RANDOM_FUNC_G / php_random_func_bytes() / php_random_func_int() - std_random.c ... - standard_random.c ... Which would be better? Regards, Go Kudo 2021=E5=B9=B47=E6=9C=887=E6=97=A5(=E6=B0=B4) 19:32 Nikita Popov : > On Tue, Jul 6, 2021 at 4:38 PM Go Kudo wrote: > >> > 1st >> >> This is to avoid conflicts with the implementation in ext/standard. I >> don't >> want to do it this way either, but I have to do it this way. >> Since random in ext/standard does not use namespaces, I would like to >> change the ext/standard side. >> > > To clarify, are you referring to the php_random.h header in ext/standard? > I agree with Remi that the extension should be in ext/random, not > ext/random_ext. We can rename the ext/standard header. > > Alternatively, you could also use ext/rng, with names RNG\Random, > RNG\NumberGenerator\XorShift128Plus etc. > > Regards, > Nikita > > >> > 2nd >> >> Although it goes back quite a long time, this implementation was >> originally >> based on an extension I submitted to PECL. >> >> https://pecl.php.net/package/orng >> >> After I posted this to PECL, I found that an object scope RNG had been >> proposed in the past in the Internals ML, and there was positive feedbac= k >> about it. >> >> https://externals.io/message/112525 >> >> However, the proposal never actually took place. This RFC is a realizati= on >> of that proposal. >> >> Is that what you asked? >> >> Regards, >> Go Kudo >> >> 2021=E5=B9=B47=E6=9C=886=E6=97=A5(=E7=81=AB) 22:46 Remi Collet : >> >> > Le 26/06/2021 =C3=A0 02:39, Go Kudo a =C3=A9crit : >> > > Hello Internals. >> > > >> > > RFC has been reorganized for finalization. >> > > >> > > https://wiki.php.net/rfc/rng_extension >> > >> > 1st I dislike the name "random_ext", why this "_ext" part ? >> > >> > 2nd why not following the standard process ? >> > >> > 1/ publish on pecl >> > 2/ merge in php-src if enough success and good feedback >> > >> > >> > Remi >> > >> > -- >> > PHP Internals - PHP Runtime Development Mailing List >> > To unsubscribe, visit: https://www.php.net/unsub.php >> > >> > >> > --0000000000003f6e3e05c687bd94--