Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72800 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17358 invoked from network); 24 Feb 2014 19:42:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Feb 2014 19:42:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=me@rouvenwessling.de; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=me@rouvenwessling.de; 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:43962] helo=lvps5-35-242-46.dedicated.hosteurope.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BE/08-10285-1A0AB035 for ; Mon, 24 Feb 2014 14:42:26 -0500 Received: by lvps5-35-242-46.dedicated.hosteurope.de (Postfix, from userid 5001) id 6D61269F14B3; Mon, 24 Feb 2014 20:42:22 +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=ham version=3.3.1 Received: from rouvens-air-7.localdomain (xdsl-85-197-51-195.netcologne.de [85.197.51.195]) by lvps5-35-242-46.dedicated.hosteurope.de (Postfix) with ESMTPA id A949469F04AF; Mon, 24 Feb 2014 20:42:21 +0100 (CET) Content-Type: multipart/alternative; boundary="Apple-Mail=_1BE27CCF-F370-4FE7-B573-3A076C30E65B" Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) In-Reply-To: <530B9C28.9070005@marc-bennewitz.de> Date: Mon, 24 Feb 2014 20:42:20 +0100 Cc: PHP internals , Nikita Popov Message-ID: References: <530B9C28.9070005@marc-bennewitz.de> To: Marc Bennewitz 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=_1BE27CCF-F370-4FE7-B573-3A076C30E65B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 On 24.02.2014, at 20:23, Marc Bennewitz wrote: > I already wrote down an idea for a very simple bc-safe API: >=20 > = http://grokbase.com/t/php/php-internals/138wn1sy5g/more-powerful-and-backw= ard-compatible-api-of-random-number-generator-functions > (Can't find the direct link to http://news.php.net/php.internals/????) I like the idea, and many parts of that API. However I don't see a need = for multiple unsafe PRNGs. If we'd drop the mt_rand function (or make it = alias) we'd still have a backwards compatibility break. So please don't let get this proposal in the way of yours in any form, = this is mostly about loosing system rand which would still map to your = proposal. Best regards Rouven= --Apple-Mail=_1BE27CCF-F370-4FE7-B573-3A076C30E65B--