Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72793 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74373 invoked from network); 24 Feb 2014 13:03:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Feb 2014 13:03:40 -0000 Authentication-Results: pb1.pair.com header.from=me@rouvenwessling.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=me@rouvenwessling.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain rouvenwessling.de designates 5.35.242.46 as permitted sender) X-PHP-List-Original-Sender: me@rouvenwessling.de X-Host-Fingerprint: 5.35.242.46 rouvenwessling.de Linux 2.6 Received: from [5.35.242.46] ([5.35.242.46:55894] helo=lvps5-35-242-46.dedicated.hosteurope.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 19/55-46513-9234B035 for ; Mon, 24 Feb 2014 08:03:39 -0500 Received: by lvps5-35-242-46.dedicated.hosteurope.de (Postfix, from userid 5001) id C9D4F69F14B5; Mon, 24 Feb 2014 14:03:34 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on lvps5-35-242-46.dedicated.hosteurope.de X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, HTML_MESSAGE autolearn=unavailable version=3.3.1 Received: from rouvens-air-7.localdomain (xdsl-78-35-249-173.netcologne.de [78.35.249.173]) by lvps5-35-242-46.dedicated.hosteurope.de (Postfix) with ESMTPA id 052F169F149F; Mon, 24 Feb 2014 14:03:33 +0100 (CET) Content-Type: multipart/alternative; boundary="Apple-Mail=_8EDE71F9-CB6F-4404-92E7-7EBCB342081D" Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) In-Reply-To: <050FCE90-536A-4F1B-BF7B-938BB6FA3F25@rouvenwessling.de> Date: Mon, 24 Feb 2014 14:03:33 +0100 Cc: Stas Malyshev , Nikita Popov , PHP internals Message-ID: <7AC59FB0-52C2-41DB-B819-EB9DF0A2D18C@rouvenwessling.de> References: <530A5899.1050203@sugarcrm.com> <050FCE90-536A-4F1B-BF7B-938BB6FA3F25@rouvenwessling.de> To: Andrea Faulds X-Mailer: Apple Mail (2.1822) Subject: Re: [PHP-DEV] [PHP6] Merging rand and mt_rand() From: me@rouvenwessling.de (=?iso-8859-1?Q?Rouven_We=DFling?=) --Apple-Mail=_8EDE71F9-CB6F-4404-92E7-7EBCB342081D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 On 24.02.2014, at 00:01, Rouven We=DFling wrote: > Maybe it would be a good idea to deprecate those and not include them = in PHP6? It's probably safer to provide a dedicated sequence generator, = than having people abuse our PRNGs. Coming back to this, I hacked up a sequence generator we could include = PHP 5.x to reduce these concerns: = https://github.com/realityking/php-src/compare/php:master...realityking:se= quenceGenerator If there's interest in this, I'd clean it up (lots of duplicated code = between mt_rand and this right now) and propose it for 5.7. Best regards Rouven= --Apple-Mail=_8EDE71F9-CB6F-4404-92E7-7EBCB342081D--