Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115958 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 45312 invoked from network); 6 Sep 2021 01:34:37 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Sep 2021 01:34:37 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5EB641804C8 for ; Sun, 5 Sep 2021 19:11:43 -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-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ot1-f41.google.com (mail-ot1-f41.google.com [209.85.210.41]) (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 ; Sun, 5 Sep 2021 19:11:42 -0700 (PDT) Received: by mail-ot1-f41.google.com with SMTP id m7-20020a9d4c87000000b0051875f56b95so6991021otf.6 for ; Sun, 05 Sep 2021 19:11:42 -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 :cc; bh=5qxCasBz/m4TpJj/4Lat3G7l6v3Mn6CdqJo7JX0u6DA=; b=l75XmEMwBX5Hcwff/wAZWwsDy+mTbtKxQqZO9eYlqqA/TuaSoIbPGiC2DPzy0h3KwO 8dopRsBaprrPaesl4PYwgoAjTAlPwRMSxws6vfOdAHMF23oTD4yNVW+uDwTJ4ISyCF3b TYnr3koJhnJJLMi9yj77p0ekOVLAqt2U6GzWuOkRCxtR+0+zRpuV2V7CSBuBpNEK+l/D 0lZhL2MXouZ70X+s5EGjeoboqxa+6lPU4GyTmotElGyl5wFrW4MhcxPMqV6zlbbIEeH4 myHYMzrs0POR6s80kzs8MSDVixt2jO/tk6yeyu3xDKDI0A8xRxPQB6EnT7VDuuygYbc1 W+BQ== 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=5qxCasBz/m4TpJj/4Lat3G7l6v3Mn6CdqJo7JX0u6DA=; b=P4hc64HDh6No96E93Lsrsqm09am4q101jcOzx9K07y6s5tvyoBxOYBR2uCpLBAP9mS OOGVS7/aMOjjKvCu5cqCNoReAjkLpRglSDhMwngUs+lM9wKelDE58fElomDADWnkofso PxC5QcU68BpNVa1yGM1+jVgmCouo6M1+gk6go2PJDSOtIZ9eulp9EhUZTyYtK8vd4owG 4il2WG/z+Mun6hV+9Fxkpp/opi7sEVxwL2qV03yLnA76RUCUAPwIhMu695kYfLCRpDr8 /22vREa5tGEQbS1OaFbZUpSz2GjUOnj0xebHwWgZA8SJYZjnvkhZxXHL4cMwXhwrCq17 Js3A== X-Gm-Message-State: AOAM531fOozqLh6ietOngE9L5CevYNxg5OYjc3Olg1MJmdSh/WHZfQE6 Fg4DebwoTXpfLEcCwbx5it56xfgVAyAHeX/MhHuRjkl+NAg= X-Google-Smtp-Source: ABdhPJyQIKLm6LHDVdU2rPEuF59SQz/zKYshB2/YIXe58cNZ3DTzU2DqGuixtrKF8FEfGJer5rbHn3RWhGyKuH+UF9w= X-Received: by 2002:a9d:740b:: with SMTP id n11mr9632696otk.69.1630894302123; Sun, 05 Sep 2021 19:11:42 -0700 (PDT) MIME-Version: 1.0 References: <61339ad1.1c69fb81.b518e.8644SMTPIN_ADDED_MISSING@mx.google.com> <6135010c.1c69fb81.c3c9e.b3a1SMTPIN_ADDED_MISSING@mx.google.com> In-Reply-To: <6135010c.1c69fb81.c3c9e.b3a1SMTPIN_ADDED_MISSING@mx.google.com> Date: Mon, 6 Sep 2021 09:11:30 +0700 Message-ID: To: Ben Ramsey Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000008b59d505cb4a2b18" Subject: Re: [PHP-DEV] Re: [RFC] Random Extension 3.0 From: pierre.php@gmail.com (Pierre Joye) --0000000000008b59d505cb4a2b18 Content-Type: text/plain; charset="UTF-8" Hi Ben, On Mon, Sep 6, 2021, 12:40 AM Ben Ramsey wrote: > Go Kudo wrote on 9/4/21 23:00: > > Indeed, it may be true that these suggestions should not be made all at > > once. If necessary, I would like to propose to organize the RNG > > implementation first. > > > > > The OOP API appears to be a wrapper around the RNG functions. The only > thing it gains by being in the core is widespread use, but it loses a > lot of flexibility and maintainability, since the API will be tied to > PHP release cycles. > > By doing this as an OOP wrapper in userland code, you're not restricting > yourself to release only when PHP releases, and you can work with the > community (e.g., the PHP-FIG) to develop interfaces that other projects > might use so they can make use of their own RNGs, etc. I tend to agree with you. However, the same logic applies to any non binary bytes RNG, all of them derivate from there with constraints. I suppose this is choice PHP has to take. I don't see such APIs changing too much over time but maybe in the beginning. It could be done in two phases. best, Pierre --0000000000008b59d505cb4a2b18--