Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72772 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82728 invoked from network); 23 Feb 2014 18:45:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Feb 2014 18:45:29 -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:53590] helo=lvps5-35-242-46.dedicated.hosteurope.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 14/63-57053-8C14A035 for ; Sun, 23 Feb 2014 13:45:28 -0500 Received: by lvps5-35-242-46.dedicated.hosteurope.de (Postfix, from userid 5001) id 4DC2B69F14B4; Sun, 23 Feb 2014 19:45:25 +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 autolearn=ham version=3.3.1 Received: from rouvens-air-7.localdomain (xdsl-89-0-211-207.netcologne.de [89.0.211.207]) by lvps5-35-242-46.dedicated.hosteurope.de (Postfix) with ESMTPA id 150B769F0451 for ; Sun, 23 Feb 2014 19:45:25 +0100 (CET) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-ID: Date: Sun, 23 Feb 2014 19:45:24 +0100 To: PHP internals Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) X-Mailer: Apple Mail (2.1822) Subject: [PHP6] Merging rand and mt_rand() From: me@rouvenwessling.de (=?iso-8859-1?Q?Rouven_We=DFling?=) Hello internals, there has already been a lot of talk about improving secure random = number generation for PHP6. One thing I'd like to improve as well, would = be non-secure random number generation. Here is not so much security at = stake but ease of use. The obvious solution, would be to rename mt_rand to rand and make rand = an alias. (The same for the supporting functions mt_srand and = mt_getrandmax). What I'm missing is the history. What was the reason to keep the = separate? Am I missing something? Best regards Rouven=