Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80391 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45141 invoked from network); 12 Jan 2015 00:26:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jan 2015 00:26:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.182 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.212.182 mail-wi0-f182.google.com Received: from [209.85.212.182] ([209.85.212.182:51614] helo=mail-wi0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DB/E1-34383-8B413B45 for ; Sun, 11 Jan 2015 19:26:33 -0500 Received: by mail-wi0-f182.google.com with SMTP id h11so11597974wiw.3 for ; Sun, 11 Jan 2015 16:26:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=6F9x4RWPIjYE8H836kRsuiNN6Zs0SWwfzk4g4QCuOC8=; b=tcjWL2Nkz0gB8QilM52JXpEoyMrhMTsck3y9W5epbZ/0zwNks0+x5NnkyZ6YlLZdEc glmBs/kfPZp6uxQl3cvgJw7g9mvDopvtvcZluJYk1K1o2Q0/EcE+QTN5F+MG9vqHDKYQ 42Uu9o6eJvZ2nBVg4pYk+bydxm9sv2Hl34lgEjMyhcfLH7WDKUWnVjwxcmqggKvnQeG/ 1HJKms/Q0P56w8JK5QOdap2TSXz7BAfkLQLnqgSaTakQ0ceEZM1ZRXi5L4BMZK8hf81A JXOZ4b3TlB8jiov3QiLPGdkCxGcKvNZvYbNIEUm1pyxbUEY3u0WLAX1RAuPsi2AeLLiZ /+1g== MIME-Version: 1.0 X-Received: by 10.194.24.195 with SMTP id w3mr25660536wjf.135.1421022389403; Sun, 11 Jan 2015 16:26:29 -0800 (PST) Received: by 10.216.50.139 with HTTP; Sun, 11 Jan 2015 16:26:29 -0800 (PST) In-Reply-To: References: Date: Mon, 12 Jan 2015 00:26:29 +0000 Message-ID: To: Andrea Faulds Cc: PHP Internals List Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] rand(), mt_rand() and limits From: leight@gmail.com (Leigh) On 11 January 2015 at 22:12, Andrea Faulds wrote: > > * Get rid of rand(), srand() and getrandmax() > * Rename mt_rand(), mt_srand() and mt_getrandmax() to rand(), srand(), and getrandmax() but add mt_* aliases for backwards-compatibility Also, this breaks all code currently using rand() and srand(), as the LCG and MT produce a different sequence of numbers for the same seed. I can't judge how widely this is used, I don't expect it to be a lot, but it's still something that has to be considered.