Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114421 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 20541 invoked from network); 11 May 2021 19:38:32 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 May 2021 19:38:32 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C40E21804C8 for ; Tue, 11 May 2021 12:46:23 -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,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-yb1-f179.google.com (mail-yb1-f179.google.com [209.85.219.179]) (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 ; Tue, 11 May 2021 12:46:23 -0700 (PDT) Received: by mail-yb1-f179.google.com with SMTP id 15so27928871ybc.0 for ; Tue, 11 May 2021 12:46:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datadoghq.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PyVRW/up76qyvbm87HEnI5d/KtnDT/sG0mjhMQwz/H4=; b=XJH+MbiAPhl1XvPwrC6IQfYZXDwp+J6COI8kJZr7aDHh/ckifV0KjZmfrDJjLCh3pO PEeqfYlZ4x+EvVlXd14c2+Zgjrw/hAZpBldugKctPi4wDENMXOmUkSqc+HCPV+8FPHW7 MK8y3+0Onvh1gZ7pvemhhwt7fTKudSQKrA23o= 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:cc; bh=PyVRW/up76qyvbm87HEnI5d/KtnDT/sG0mjhMQwz/H4=; b=b1j9Wn6nTwrVS1h8R7wS8s2A7STT71Ztvwk5cavNp1sOjGysTAF2NqfsLpUJNRZTdI pi2ExsZKsNFN9adfDn1+OL0dlPKv2Zm6zMhCA+cinGg/J1WKL2iWwvC7aSapZsSIFNLr zzjtBwJ0ctpmR8RN69P6WR/2Xtl57Hmmm0l4unalYSZU4wVS7WMy4ZbiWOhdXQc6ovJb efu/QsHyqTSON2hcB5WVM/abUf7MeS7TaMMsD8OQYckHo/jCWIM9LuKgPu40AemZeNRd QP9M21mK/ivgZmDV2LvtIxFJvvHyVrxSGAGTdpS/hn0H4EGTUFzo7MVeUSHcaRwpDwe2 XxwA== X-Gm-Message-State: AOAM5311zukBHJxDJt7qh99XuCkPBJHDXcHb5E71orBfR7FBDO2Su4w8 /aKuSRnA5U2ItHpPTvM3J5oWKmvvrdRFbQRFN/vD5w== X-Google-Smtp-Source: ABdhPJyFnYmZgWIxTdKjwmoPXXYrZRDNOECXaLTLLi2KnqqUydeCMfB7YMCuq4OCqtMnr6FKFzU97NuVNmtPvfsJ++I= X-Received: by 2002:a25:e803:: with SMTP id k3mr42448308ybd.268.1620762382648; Tue, 11 May 2021 12:46:22 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Reply-To: Levi Morrison Date: Tue, 11 May 2021 13:46:12 -0600 Message-ID: To: Go Kudo Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Discussion: Object-scoped RNG From: internals@lists.php.net ("Levi Morrison via internals") On Tue, May 11, 2021 at 6:58 AM Go Kudo wrote: > > Hi internals. > > I previously proposed an object scope RNG implementation inside. > However, the RFC was rejected after a vote. > > https://wiki.php.net/rfc/object_scope_prng > > Vote: https://externals.io/message/113888 > Discussion: https://externals.io/message/112819 > > As per my previous proposal, PHP is currently in a very unclear state > regarding the random number implementation. > > So I would like to ask a few questions. > > - Do you think that PHP needs an object-scoped random number > implementation? And why? > - If the API in the previous RFC was improved and voted on again, would you > be willing to vote for it? > - What issues do you think should have been resolved between proposal and > ballot in the previous RFC? > > I would like a variety of opinions. > > Translated with www.DeepL.com/Translator (free version) > > Regards, > Go Kudo I would like to see an extension that doesn't contain the backwards-compatibility breaking changes in the RFC. Every function, type, and constant should be namespaced according to the extension. For instance, if you want to call it `ext/rng`, then the namespace can be `rng` or `Rng` or `RNG`.No exceptions for now! The previous proposal had namespace things, and un-namespaced things, and breaking changes, and I don't think that made a cohesive proposal. Also, php-src generally doesn't suffix interfaces with the name "Interface". Please provide another name for `RNGInterface`, like `RandomNumberGenerator` or `RNG`.