Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120430 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 45649 invoked from network); 29 May 2023 15:41:47 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 May 2023 15:41:47 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8D9F61804D7 for ; Mon, 29 May 2023 08:41:46 -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=-0.2 required=5.0 tests=BAYES_20,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,T_SCC_BODY_TEXT_LINE 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-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 29 May 2023 08:41:43 -0700 (PDT) Received: by mail-qt1-f177.google.com with SMTP id d75a77b69052e-3f7f53e8444so7894281cf.0 for ; Mon, 29 May 2023 08:41:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685374902; x=1687966902; h=subject:to:from:date:references:in-reply-to:message-id:mime-version :user-agent:feedback-id:from:to:cc:subject:date:message-id:reply-to; bh=tZ99xeH5m/+LirmhE1gTI96wjBC4sgV2qSdnQJ/PGxw=; b=F9Eo8DgwLJWjIB4e0OOJX5HYEM6VMsHbNBSXpYFKCp4ve+VL7grNmNXENBWrq6lGz6 BvxmtnZBA3QRCIACGMxKSTJkUwpbtcy2rwxGvxwfynXp05jubTNTUvab1q+3iSHEOsWw 6akrri/bYjvXkCguj2bLb91sENiE+A6DLMp0SG1mslySNSDm602xdgfqmqnvOUnaSIO5 ctYyJJwkp6PB1/qFefNZsPMsrcP0ax1pyPk5XuWlp5k/DAxmEguZx/ELJfat/gXOQDQ4 XPbeWdSr4vdyb91wIiuGRN8m/+virndKA7qKRBvb5vsu2OXMkkqHuad+qapD6n3d/qId Thig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685374902; x=1687966902; h=subject:to:from:date:references:in-reply-to:message-id:mime-version :user-agent:feedback-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=tZ99xeH5m/+LirmhE1gTI96wjBC4sgV2qSdnQJ/PGxw=; b=km7VNj8TCETLoAt2op9MtmBqy3OQfxDoaZHSJbPN+RPD4DqXI+YQ8eL9RyYO1c/Pi5 8cQ2sSTtmT/ld3mO9C/RotlRrAszceYg2lVVnxPk51KSvK8KxP82ji4xTafiG6XwmFTk KgwpmR42U/Lwr4rO+kjmpmKSXGQHGo8He+bPyQlckbGgwD69MfMprOTqV5f+64CkjG6s MxjtsgsAjNu6ON5kCqAiflgNSl7WFfVPvENWaObZWql7JB0gqqn9/ddT1CJlV2w0LfuF oTV/fhodfBakx16PSvxm1vWUVMTnUEvaRsdk7GowmFDaxwa5T7JL9Qhjf3AM1XIQQ7ct 06Vg== X-Gm-Message-State: AC+VfDzdj3bZQwxZl7TaufUZVCxokRnlm58XRdcYwDUW/d8dA52nVDBm Nvdftt58tPw0Y8j11gL8oAYVnr2HGiY= X-Google-Smtp-Source: ACHHUZ5HZzciTquJ+yCk6A3spz+AJJAkkq8Dj6wrYPX9kyCq8kXC0E1RlZsuR1yHGCWT6xgpwgyh0A== X-Received: by 2002:a05:622a:11d6:b0:3f5:315f:5c1d with SMTP id n22-20020a05622a11d600b003f5315f5c1dmr11477599qtk.4.1685374902369; Mon, 29 May 2023 08:41:42 -0700 (PDT) Received: from auth2-smtp.messagingengine.com (auth2-smtp.messagingengine.com. [66.111.4.228]) by smtp.gmail.com with ESMTPSA id fc22-20020a05622a489600b003e0945575dasm3977620qtb.1.2023.05.29.08.41.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 May 2023 08:41:41 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id 9498D27C0054; Mon, 29 May 2023 11:41:41 -0400 (EDT) Received: from imap48 ([10.202.2.98]) by compute2.internal (MEProxy); Mon, 29 May 2023 11:41:41 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeekhedgleduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesrgdtreerreerjeenucfhrhhomhepfdfpihhk ihhtrgcurfhophhovhdfuceonhhikhhithgrrdhpphhvsehgmhgrihhlrdgtohhmqeenuc ggtffrrghtthgvrhhnpeefleehueeluefhffelleeifeefffekkeekveefteffhfdtfeeg hedvtefhieejffenucffohhmrghinhepphhhphdrnhgvthenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrghilhdomhgvshhmthhprghuthhh phgvrhhsohhnrghlihhthidqudefudefledukeehiedqvdehkedvgeehieekqdhnihhkih htrgdrphhpvheppehgmhgrihhlrdgtohhmsehnphhophhovhdrtghomh X-ME-Proxy: Feedback-ID: id4a9467a:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id C972431A0063; Mon, 29 May 2023 11:41:40 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-441-ga3ab13cd6d-fm-20230517.001-ga3ab13cd Mime-Version: 1.0 Message-ID: In-Reply-To: References: Date: Mon, 29 May 2023 17:41:14 +0200 To: =?UTF-8?Q?M=C3=A1t=C3=A9_Kocsis?= , "Levi Morrison" Content-Type: multipart/alternative; boundary=f45a634ad7c0433482a47aedfce1e922 Subject: Re: [PHP-DEV] [RFC] [Discussion] PHP 8.3 deprecations From: nikita.ppv@gmail.com ("Nikita Popov") --f45a634ad7c0433482a47aedfce1e922 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mon, May 29, 2023, at 08:05, M=C3=A1t=C3=A9 Kocsis wrote: > Hi Everyone, >=20 > Together with multiple authors, we'd like to start the discussion of t= he > usual > deprecation RFC for the subsequent PHP version. You can find the link = below: > https://wiki.php.net/rfc/deprecations_php_8_3 >=20 > Regards: > M=C3=A1t=C3=A9 Kocsis I don't think we should deprecate mt_rand(). There are plenty of use-cases that require neither a seedable (predictab= le) RNG sequence, nor a cryptographically-secure RNG. For those use-case= s (and especially one-off uses), mt_rand() is perfect, and going through= Randomizer is an entirely unnecessary complication. I think I could get on board with deprecating srand/mt_srand to make ran= d/mt_rand non-seedable, directing people who need a seedable RNG to use = Randomizer, which is much better suited to that use-case. However, we sh= ould retain rand/mt_rand themselves for non-seeded use-cases. With srand/mt_srand removed, we also would not have to produce any parti= cular sequence, and would be free to switch the internal RNG to somethin= g other than Mt19937. The same extends to array_rand(), shuffle() and str_shuffle() -- in fact= the RFC is missing an important voting option, which is "leave them alo= ne", or rather "convert to some non-seedable non-CSPRNG" if you prefer. Regards, Nikita --f45a634ad7c0433482a47aedfce1e922--