Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118352 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 68085 invoked from network); 4 Aug 2022 18:40:19 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 Aug 2022 18:40:19 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BA93E180539 for ; Thu, 4 Aug 2022 13:40:40 -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 ; Thu, 4 Aug 2022 13:40:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1659645638; bh=zOC0GaDHii9Fe3vxBAJuRoX33gGhSmgj/7eQw0Y9Zyk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Vwk54XXXCAJCcZKIDLyPqivgu/cMotLbxWKJcWn2keLK0slK5c8weauYrL9Zn2AOr I3vnvaGFASbc04au7n6N91VR37kj6eOtKbOt5Rh6JGmqFY2IDbmssVu8lyDh73Z225 bgsWWDoE34wL8lcVpvTHxesTVXqzoJ+pTKzZekPJzKurYrAcDPG5YWyguMR+zlXENI mvi6C14S8xflekDMKlQujfR8wG3TKwuuqf6Xy+/IBi5sNTTXAgUvTUbKHOQvcIMI0b a+Dq6oUpC/BpKPyQlgHjaP+V91MGVbZuVF6RVPRjUExpm8cEv1Y+r2ooVhZDjsb0qG qGkQTAdJGAt1w== Message-ID: Date: Thu, 4 Aug 2022 22:40:36 +0200 MIME-Version: 1.0 Content-Language: en-US To: Hans Henrik Bergan Cc: Anton Smirnov , PHP Internals List , Go Kudo References: <157e4f6b6e96376e61194b9a358c87b02880ec28.camel@sandfox.me> <67f9981b-de29-2f83-cecf-08ea3c1199ae@bastelstu.be> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] xoshiro** edge case (all zeros) From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=c3=bcsterhus?=) Hi On 8/4/22 22:32, Hans Henrik Bergan wrote: > dangerous to be sure, but it's also a technically valid seed, > are you sure we should disallow a valid seed? The all-zero state is not a valid state as per the reference implementation at: https://xoshiro.di.unimi.it/xoshiro256starstar.c > The state must be seeded so that it is not everywhere zero. The period of Xoshiro256** is officially defined to be 2**256 - 1 instead of 2**256 for that reason. Best regards Tim Düsterhus