Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115274 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 15828 invoked from network); 2 Jul 2021 13:19:13 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 Jul 2021 13:19:13 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6F6BE1804F4 for ; Fri, 2 Jul 2021 06:39:59 -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-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (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 ; Fri, 2 Jul 2021 06:39:58 -0700 (PDT) Received: by mail-ej1-f46.google.com with SMTP id b2so16205113ejg.8 for ; Fri, 02 Jul 2021 06:39:58 -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=3zeI0n2a9Sq6g2JXLrI2D+WYCZfiONW2qucg/9tXHx4=; b=UrL+UmUlYQWZ1ZnnWGoPgWqYMrj7VWJv0xgoRmOeVlOzSORrxIbYndy4aRA/0dJ9Gh vojn7fALI+OwYOmgEMuGHvDVuOfKJnqWEehEDeybX2gXIBkmGkLJFcgdIgtXJO5YYfNl JcEyHlUtPMQbvW6BSyCoPER4/MqywpPHgARnZW48xXChTDc7scAt8KqcEVuGj9WBiCdx DJEgu05F8t7Tcv8qmCgJg0aF77uemfkH4GI93hjkPjMrTKf0vwEuDFdhOgxhRUMVSeer gw+OyEH74dvZ8mSrFUGdeltI1KqOHKZDIOV5UTqmR22ABB5ahriyBYbZktewGowpLhFl 7dBA== 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=3zeI0n2a9Sq6g2JXLrI2D+WYCZfiONW2qucg/9tXHx4=; b=JeGcBkl9GmwNXg0gwDsqzHbxsaeB6OFNGcTNNmIL9ypypNj8/FCgHa/ljHhzxTEnnA c7qDJYwS4lYBdplnJVpLCGIOQKK2Ienh8DrwkX8S1t/AbbOWeYLV7dnoB/vCq2jRSNNO UJJfihJ7KGX0q13khohCITZGDAxABBjkiKW/G3lpc+pECVDXub+GfQYHR/hGuIXhTj87 +/MKliQ6Sx1uX9P4zrhk+lStGbuXVg/TqBDn4VrxzxRgLx2HQErYs4nApjI6uydQbnQ4 s8V8Q8iXoNuqX4tvS1L9hVdfihVwcvt2LqzZ/N7ZjUPnI1n/ZrLUeAvux0fCYHtFMFVO TGFA== X-Gm-Message-State: AOAM530NxSQ5uZTib6lQJ2FG4lZ01MUTxiOOwgEwktvD3MrNHhOUdzLV x09Y6htxs2ouQ55nowRib13jf8nP8D7fMpVKj6M= X-Google-Smtp-Source: ABdhPJwnkqvSiBY5akxeHsvYuDzFJmxsiJEvZWIDOsmxb7iO5PdKsWaazE8e3GENQmAYKA9qow0e53DmNVBh2979xTg= X-Received: by 2002:a17:906:240d:: with SMTP id z13mr5327609eja.118.1625233196147; Fri, 02 Jul 2021 06:39:56 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 2 Jul 2021 22:39:45 +0900 Message-ID: To: Kamil Tekiela , PHP internals Content-Type: multipart/alternative; boundary="00000000000055688205c62417bd" Subject: Re: [PHP-DEV] [RFC] Add Random Extension (before: Add Random class) From: zeriyoshi@gmail.com (Go Kudo) --00000000000055688205c62417bd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > Can it not be simply Random/RandomNumberGenerator? The interface should be named NumberGenerator\Generator, but since it is confused with the built-in Generator, it is named RandomNumberGenerator. The reason for using the NumberGenerator namespace is that some class using random numbers may be implemented in the future. > Can you also clarify what happens when serialization or cloning fails? OK, I've updated it. But these are not special behaviors, they are built on top of the standard PHP mechanisms. Regards, Go Kudo 2021=E5=B9=B46=E6=9C=8826=E6=97=A5(=E5=9C=9F) 17:55 Kamil Tekiela : > Hi Go Kudo, > > I find this iteration acceptable, but I have one last complaint. Why the > double namespace? Can it not be simply Random/RandomNumberGenerator? > > Can you also clarify what happens when serialization or cloning fails? > > Regards, > Kamil > --00000000000055688205c62417bd--