Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116235 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 83345 invoked from network); 6 Oct 2021 12:08:06 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Oct 2021 12:08:06 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BE62C180546 for ; Wed, 6 Oct 2021 05:52:48 -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-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com [209.85.219.171]) (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, 6 Oct 2021 05:52:48 -0700 (PDT) Received: by mail-yb1-f171.google.com with SMTP id u32so5106366ybd.9 for ; Wed, 06 Oct 2021 05:52:48 -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=NtPxIiIYHGKz54qubIT+sdOPBy0+XaRnaJggSO1e/Jc=; b=GiotFyb5e5WYb0xkkmQbMVDcD9kuVty5OY2kQaZpM/Xi8gaNhu+TQ074jNlW8Em7mb taOt2AAF2FKkVwh1ZU2+4eYqn2vyeW/Em3GYGofTpQ1ZrrwR7MIQb1zyUHIFab7kDttb NCRxWsPz9+R5D1weOiOf5tMXrYA9wWYtfsXAg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NtPxIiIYHGKz54qubIT+sdOPBy0+XaRnaJggSO1e/Jc=; b=4MPBcDVFkvoM+jcVO0oGg5d5q4yr9N8d7U0ags4eYtc0m69L/bBlt/wXvxOJffMAcm wxzOqzoNXpKToEsV0DU10VU+Rmc1rNp/1ftbU+rrfdARxEQudvXgr658xJvUgAWrBf2z VSYXvFjFpdxF1OmKsoPqje85vv49R0wDQ9x5QD0H4rCCMpLUDCbUF1+Z0ORi78DVFcdT kz4yqfv4JKB8++GIEBxxJ3R29tUko3Hdt+PTVj/rEavX3RJZKgXcrI8N6t8vx2TCKBVb rQSbFRpGtNw1Vbon4qsKevwxnpzkBeL9z1W8g5qDShqBo67ODSRd4TwPK2hGwLTf9vBI DpIg== X-Gm-Message-State: AOAM530ui5JSI0G63HaEMVy8jD6u3CwkQyTZEjzpE8yp0g2/KUVw2hv0 /fYuOOnLKU++u5bKBay7WF0rs79G7YqpVMfL7TapIA== X-Google-Smtp-Source: ABdhPJwFu4XcJoh9A2N17kTz8+5U6T2DMfzFhAcpZ7t/LkcH3kU/vSMT6aQoCVV+doJW/SgnOKqsv/RIBnnPKE3pww8= X-Received: by 2002:a25:81c5:: with SMTP id n5mr28575226ybm.276.1633524764560; Wed, 06 Oct 2021 05:52:44 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Reply-To: Levi Morrison Date: Wed, 6 Oct 2021 06:52:33 -0600 Message-ID: To: Nikita Popov Cc: Go Kudo , PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [Pre-Vote Announcement] Move RNG functions Random Extension From: internals@lists.php.net ("Levi Morrison via internals") On Mon, Oct 4, 2021 at 4:21 AM Nikita Popov wrote: > > On Wed, Sep 22, 2021 at 1:21 PM Go Kudo wrote: >> >> The voting phase for the following RFCs will begin as soon as two weeks >> have passed. >> >> https://externals.io/message/115975 >> >> I don't see any particular discussion, so I'm contacting you just in case. > > > I'm pretty neutral on this proposal. I don't think there's a strong motivation to move this functionality into a separate extension, but I also don't see any particular problems with doing it (as long as it's an always-required extension, which this is). > > I believe Levi is a proponent of splitting up ext/standard into smaller extensions, maybe he has some thoughts on this. > > Regards, > Nikita I've glanced at the patch; it seems fine. I do like smaller, focused extensions better than throwing things in `ext/standard`. Can we change the return types of the functions in this extension returning `SUCCESS`/`FAILURE` to `zend_result` at the same time? I think it's just these two: - php_random_bytes - php_random_int Actually, is that something we could still do for PHP 8.1?