Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118019 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 24722 invoked from network); 20 Jun 2022 13:53:43 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Jun 2022 13:53:43 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E9DB7180505 for ; Mon, 20 Jun 2022 08:42:45 -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,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS24940 176.9.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 20 Jun 2022 08:42:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1655739764; bh=Ce1IIaqcoudlEUD4lsV9vfmID+qgp+Fj6Jub9wiv80M=; h=Date:Subject:To:References:From:In-Reply-To:From; b=mR8S/zSooDFVS3VL5COUj1Gbm6L6iiLE3ezlx8j6jc4vzxh4Y7cduDECdTfsu6uJs urhP86fcC/JwHUpk/h21s3877h7xwoyRdglHNza3hVQw8nE25B7DQzxVdBPIyxTDZe ikTgp9rQFWHLPV/9Vnm3G98aWzJXbboROVPkBeXi7h8VDYvjnjOLed2b6pmOZdRXdw 3eqFHzkPMnAyfinrZy/a91+9GpQVSTrHcC9yZ/S9gwbHskuVEiVMUxqHZwgmQtXNXo g3GxwtFyVZ9ur2oEvK/EIhs96cjXz6k0mLz+rgkrshAFEW9u10vTOG84eJjlI66qfk H59QN+zCFeDTw== Message-ID: <3fc08765-1419-76ff-d0a6-bf4552dfdc2f@bastelstu.be> Date: Mon, 20 Jun 2022 17:42:43 +0200 MIME-Version: 1.0 Content-Language: en-US To: Go Kudo , Nicolas Grekas , PHP internals References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [RFC] [Under Discussion] Random Extension Improvement From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=c3=bcsterhus?=) Hi On 6/20/22 17:12, Go Kudo wrote: >> CombinedLCG > > This is provided as an OOP implementation for the `lcg_value()` function, > but I don't actually > want it to be used anymore, so I probably shouldn't provide a class for it. > > And to begin with, the current CombinedLCG cannot even be seeded with > arbitrary values. > > However, I think it needs to remain in the internal API either way. (The > option of not providing > it to userland is a valid one.) I wouldn't object to dropping CombinedLCG, especially since its internal parameters are not defined via the name (contrary to MT19937). > What do you think about the `Random\CryptoSecureEngine` interface? > It is just a marker interface with no methods. > > However, I currently think it is better than adding a method like > `isSecure(): bool` > to the `Random\Engine`. > I *much* prefer the marker interface. Best regards Tim Düsterhus