Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94518 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95398 invoked from network); 16 Jul 2016 00:17:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jul 2016 00:17:33 -0000 Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.54 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.215.54 mail-lf0-f54.google.com Received: from [209.85.215.54] ([209.85.215.54:35251] helo=mail-lf0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 01/0C-20986-B1D79875 for ; Fri, 15 Jul 2016 20:17:32 -0400 Received: by mail-lf0-f54.google.com with SMTP id f93so98331568lfi.2 for ; Fri, 15 Jul 2016 17:17:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=bAVuG7x6nOlZKV1GJb7qvGn9wDBjdGIjBPt9+sbFZCI=; b=Rg7rq4GWxw10FgXvA2NbmL32ueO36u5uG3B7OtfP6E130dCf45+9oMBtgjH2sNQtXv FD9GnYdTaOlWtjPWNucJWA+sVQnpyIRhPIOwxtGgY/1iny/3Z0p6a085G2mmNuC3eMa8 //Ukenyq+I2u/PVVBlSf4SGhJ48/Yiz+uvrU+eVBf9pht+s5AvOjwUUqFi2U66ybLQHT DhgBkMThkt2mIpI7JRinlkVwyvir/xeB9zvYWudnoMM5VfJRLz51d6Z3q0Z5B5r5mQwn pj+mahMBd4bJ/BTnjqvb0E0ZtT4oafcr4ZS6fnses5pDzWDG4tapnaS/lpwrO9cvIZe+ uH4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=bAVuG7x6nOlZKV1GJb7qvGn9wDBjdGIjBPt9+sbFZCI=; b=ImVc0USKqFSWckjmlTmOCCU1Elxp+REI2KXbdJE/arKsHovSldLf6EoWdWRp3FZCyj gWzVeLsrYZ8AA6lE3d8OFxGaeC/5K0u6lGGJpz80QJfAb+ALeC0BqLfbv8iBS3ES1Brs zGfu7sQ+suGVx+KM1aYyUYYGME6GxIHlqbncycg9Nnq1BKAGTb1w3E8QMfNc75Um6VtX YeOY/DArgdidBPp8AEHYXZESZUXoIV2D0BGDKVV5bVBUAIaJ+0a3lEgB3Vzj3nYCaFhq 1Jp16maRahC8oCs/N23MkTKJTV92QX8BkblGfIt6Qk3f5UMd+OhxhhyFwUrjwNrT1yB6 5fsg== X-Gm-Message-State: ALyK8tJbxwdbfWNYaDByTyVeuceEkujGBMuLIJlIoS1aF7uB+qjnZ6jJUhmRpbg+/2Ir2bGBgSyABhuNNgy6LA== X-Received: by 10.25.4.8 with SMTP id 8mr10540731lfe.221.1468628248601; Fri, 15 Jul 2016 17:17:28 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 16 Jul 2016 00:17:19 +0000 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=001a113fc21a10ad320537b5a9cb Subject: Re: [RFC][VOTE] RNG fixes From: leight@gmail.com (Leigh) --001a113fc21a10ad320537b5a9cb Content-Type: text/plain; charset=UTF-8 On Thu, 7 Jul 2016 at 11:39 Leigh wrote: > As the discussion thread has been quiet for a while, moving this RFC to > voting. > > https://wiki.php.net/rfc/rng_fixes > > https://github.com/php/php-src/pull/1986 Votes are now closed. Results as follows: * 19-5 - Fix mt_rand() implementation * 21-4 - Alias rand() to mt_rand() * 25-0 - Fix RAND_RANGE() * 23-0 - Replace insecure uses of php_rand() with php_random_bytes() * 24-0 - Make array_rand() more efficient There are still a couple of tweaks to the implementation to be done before merging: * Make ranged output the same on 32 and 64 bit platforms where max-min is less than 32 bits * In compatibility mode use the old RAND_RANGE for mt_rand() I intend to make time for these fixes tomorrow. --001a113fc21a10ad320537b5a9cb--