Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72777 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1503 invoked from network); 23 Feb 2014 21:53:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Feb 2014 21:53:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 198.187.29.233 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 198.187.29.233 imap1.ox.registrar-servers.com Received: from [198.187.29.233] ([198.187.29.233:41375] helo=imap1.ox.registrar-servers.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8C/85-57053-5CD6A035 for ; Sun, 23 Feb 2014 16:53:09 -0500 Received: from localhost (localhost [127.0.0.1]) by oxmail.registrar-servers.com (Postfix) with ESMTP id CCC2F200089; Sun, 23 Feb 2014 16:53:05 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap1.ox.registrar-servers.com Received: from oxmail.registrar-servers.com ([127.0.0.1]) by localhost (imap1.ox.registrar-servers.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id VXoKz1QSVl2H; Sun, 23 Feb 2014 16:53:05 -0500 (EST) Received: from [192.168.0.8] (unknown [94.13.98.104]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by oxmail.registrar-servers.com (Postfix) with ESMTPSA id 4F4E6200057; Sun, 23 Feb 2014 16:53:02 -0500 (EST) Content-Type: multipart/alternative; boundary="Apple-Mail=_79AD6848-C75C-4DC8-AD87-13756677F005" Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) In-Reply-To: <530A5899.1050203@sugarcrm.com> Date: Sun, 23 Feb 2014 21:53:00 +0000 Cc: Nikita Popov , =?iso-8859-1?Q?Rouven_We=DFling?= , PHP internals Message-ID: References: <530A5899.1050203@sugarcrm.com> To: Stas Malyshev X-Mailer: Apple Mail (2.1827) Subject: Re: [PHP-DEV] [PHP6] Merging rand and mt_rand() From: ajf@ajf.me (Andrea Faulds) --Apple-Mail=_79AD6848-C75C-4DC8-AD87-13756677F005 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 23 Feb 2014, at 20:22, Stas Malyshev wrote: > 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. What? PRNGs guarantee that for a given seed they will always produce the = same sequence. All sorts of things do and should rely on this. -- Andrea Faulds http://ajf.me/ --Apple-Mail=_79AD6848-C75C-4DC8-AD87-13756677F005--