Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72774 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88328 invoked from network); 23 Feb 2014 20:24:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Feb 2014 20:24:11 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.139 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.139 smtp139.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.139] ([67.192.241.139:33262] helo=smtp139.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A9/34-57053-9E85A035 for ; Sun, 23 Feb 2014 15:24:10 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp30.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id 31E62348B3B; Sun, 23 Feb 2014 15:22:52 -0500 (EST) X-Virus-Scanned: OK Received: by smtp30.relay.dfw1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 49C11348B31; Sun, 23 Feb 2014 15:22:51 -0500 (EST) Message-ID: <530A5899.1050203@sugarcrm.com> Date: Sun, 23 Feb 2014 22:22:49 +0200 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Nikita Popov , =?UTF-8?B?Um91dmVuIFdlw59saW5n?= CC: PHP internals References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [PHP6] Merging rand and mt_rand() From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > Changing the random number generation algorithm is a BC break, e.g. tests > could rely on certain random number sequences for a certain seed. However I would say anybody who relies on RNG producing preset numbers is asking for trouble. If you need mock RNG, mock it out, don't rely on undocumented properties of the system one. But then again, refactoring and unifying RNGs is not very urgent thing and a good candidate to put in a major version. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227