Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94217 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92894 invoked from network); 22 Jun 2016 21:28:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jun 2016 21:28:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.195 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.195 mail-pf0-f195.google.com Received: from [209.85.192.195] ([209.85.192.195:35356] helo=mail-pf0-f195.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 34/00-26393-CF20B675 for ; Wed, 22 Jun 2016 17:28:29 -0400 Received: by mail-pf0-f195.google.com with SMTP id t190so4931247pfb.2 for ; Wed, 22 Jun 2016 14:28:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=sTsXoDCF1BSMOo8m0F3rY06UxmraS/t8JtPeUolhho0=; b=a+FW+WJbSxzTxNs1dQRZvfE5dyQmKO80Aw2EWH4OlRGSRiAU1t7HFG3T212ZGd5vc5 zXI88mpcAWkRja3iz6ZoLBB7l8Fl33Im3w+xDfyJKXI0YVBvY+UjJL9U5EG0oRNznyg9 gTlGzE/U6ZmmMhjFlSktk1VcGx9I0K0SS6a1cbBZOv7YqgcAtMMJUsDApd0Gw0BL9Eqv ymS5IDBvXVi5CG4MQDSUCgv2OoE2idqSU5p28xaw31vMkbirK1XpC4OdH7H0XEbytUuv Hz7l5FRFd7FdRUkNq3/MRvi2MQGPiv1QwO2Qir24ee9I+GPO6xWPn/BszBgQ/9tRE1IM rjnw== 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:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=sTsXoDCF1BSMOo8m0F3rY06UxmraS/t8JtPeUolhho0=; b=Tm31hwfc4gUQpfwtWdUd/uDnjqRRikbuIB7OXAJb+U+qxzhkmmMKEicitk8QWKGvGW BOYRpyuzQKLYrolZgVM2HRmDa+OhffQ0JlvAsWwtIoWwA5trRvItlEon8MOaVf/ZTHJN s2tEOETv/Ut7pUDER4HIy7TtXZnNwt8yInt3xunkeZlIh6vz4V1KrCCqvUPlXkgzbd6z z6pQhsqY33h20sQ5h/lwUI1VX1b6abVNdquunQM3RUlGyU33tRmp63PN4hWDXG2Gr4G3 5jFHOYJKQpLZ2N5aSNeIhlXZmRkhHzvvHm1Yx97/P4ObF7s8JVa63e0BsUt0V2JPghg9 NmkA== X-Gm-Message-State: ALyK8tLDBgowboE1IjHDIDLm2jDP97PibsWBc5uoi1OheMR+6EkOhiGH4fifiP/Qepp7FQ== X-Received: by 10.98.12.134 with SMTP id 6mr36661215pfm.15.1466630904957; Wed, 22 Jun 2016 14:28:24 -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 i68sm1857518pfe.64.2016.06.22.14.28.23 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Jun 2016 14:28:23 -0700 (PDT) To: Nikita Popov , PHP internals References: <2f92fa26-5f50-0e68-c1fc-de79f17c201e@fleshgrinder.com> <8b48f847-bbba-03f8-4b2e-9cd0841b484e@gmail.com> <65ea0142-c2d6-f4ed-e98e-b7c7fbc51c58@fleshgrinder.com> Cc: Rowan Collins , Tom Worster Message-ID: <2ee358a6-ea9f-b7fc-2ff8-4e662a465978@gmail.com> Date: Wed, 22 Jun 2016 14:28:22 -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! > I haven't been following this thread, just jumping in to comment on this > point. My suggestion to deprecate rand() was motivated by the fact that > rand() produces extremely low quality random numbers on Windows, while at Why not fix it then? > the same time having the name people are most likely to try first if they > want to have a random number. It's a bad state of things if there's a > rand() and an mt_rand() function and the latter is preferable in *all* > situations, while the former is more likely to be used. However, this > concern is completely alleviated by aliasing rand() to mt_rand(). If we do Exactly, one of the ways. If mt_rand for some (unknown to me) reason is not good enough, I'm sure we can find a better one. -- Stas Malyshev smalyshev@gmail.com