Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94169 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99595 invoked from network); 21 Jun 2016 05:33:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jun 2016 05:33:58 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.172 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.172 mail-pf0-f172.google.com Received: from [209.85.192.172] ([209.85.192.172:34247] helo=mail-pf0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F3/2C-16093-5C1D8675 for ; Tue, 21 Jun 2016 01:33:57 -0400 Received: by mail-pf0-f172.google.com with SMTP id h14so2849948pfe.1 for ; Mon, 20 Jun 2016 22:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=uX1Y2Fo9MQ+QHHMwp0sNhhoVHbB7WrQnrbqtwt9MUYc=; b=raUSHt/LFZG8n28nwhAa4gxcVdfFpyww5Ii8mB+BcwxaQ5W6sCCybvhT0vNRg0OCjr XA9uJhA3Nfz6ZcZFWnj/4cRFJDZr/g/KHc0OkyeCuhHcBldw6PV2woHQKRwrFfPp703k LcJKHxn4upUvvP5vRgTf0x/MPKUb23gOWS4i106anupqNDbVC9Y2vMbfHytJSNHT8YGQ JT4llx/Oh1yuPSyOHRHtiFhMtooogOjajrWGvhNbCfv+Kgq/ypwhac4aZNgci5DkEfpH G4+UFPoYc28b5ie2cjFLSlvDNWpDdqEzzz5LF8CmEaU7PrCEhwDoBdIFjOG+5eQ8o4Vx 5sdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=uX1Y2Fo9MQ+QHHMwp0sNhhoVHbB7WrQnrbqtwt9MUYc=; b=Iwj7D99VVjdS0+yK4u2EBLaiIuswQ8vZWChMg98FcQHeelW1waSUa1dkrxbW/dOQLa NDKeI2Vf4wR/FyDosLjOiw5Mag4K1imcK8fwTcvGRyPNLeT9b84TiOcdfOt+VXDUOx51 PlLAjo8d375duNsP1FPndQMtK7X0k7Jpp2JLXD+61EgxuZfrUGKfoXeRRzFTSwTX8/5M 3lCrJMiYAfUaQc/JVEogpxJTbplT67m4EnH3lXo9FflW8OIIrpTWf1DBy7A/qMR6IcRP eLAts09tLeky2r7jxVxSyMoeZ4XROaaaJBDornXbqlWV7WIasZ2KePmZ8JT0sPW+J8pM 6crQ== X-Gm-Message-State: ALyK8tKj1Movlh8+d/Sjl5p1ycPN1Ki5nJ6v65/WvrkmT327KWE/x/sO/8LTPsHf68ROxw== X-Received: by 10.98.1.84 with SMTP id 81mr26532110pfb.155.1466487234531; Mon, 20 Jun 2016 22:33:54 -0700 (PDT) Received: from Stas-Air.local (76-220-46-95.lightspeed.sntcca.sbcglobal.net. [76.220.46.95]) by smtp.gmail.com with ESMTPSA id c189sm62589332pfg.19.2016.06.20.22.33.53 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 20 Jun 2016 22:33:53 -0700 (PDT) To: internals@lists.php.net References: Message-ID: Date: Mon, 20 Jun 2016 22:33:52 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] RNG fixes From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > Why do we need so many functions to get a random int anyways if we now > have random_int()? I would like to see all of them deprecated and > removed in PHP 8.0. I don't understand this drive to remove functions and break existing code. What is the point of it? If you don't like them, don't use them. They can share underlying implementation but there's absolutely no reason to remove functions unless they do not work anymore, broken and can not be fixed, etc. PHP 8.0 is not some magic land where anything goes and BC does not matter anymore. It still should run existing apps and do it well, otherwise there's no point in releasing it at all - who's going to use it? > Mcrypt is meant to be replaced anyways and OpenSSL might be too if we > can come up with a nicer implementation that actually hides the > underlying library (e.g. sodium). This is another problem. So we have OpenSSL, then we have mcrypt, then we have another implementation like sodium... do we really expect our users to rewrite crypto in their apps every couple of years? That would be insane. OK, we could say "have your apps work as they worked, but use new stuff for new things" - but you propose to remove stuff? -- Stas Malyshev smalyshev@gmail.com