Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93965 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25669 invoked from network); 14 Jun 2016 18:14:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jun 2016 18:14:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.17.21 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.17.21 mout.gmx.net Received: from [212.227.17.21] ([212.227.17.21:64211] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BA/C4-34398-D7940675 for ; Tue, 14 Jun 2016 14:14:22 -0400 Received: from [192.168.2.102] ([217.82.228.97]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0M3NEK-1bUYGG2tWq-00qz71; Tue, 14 Jun 2016 20:14:16 +0200 To: internals@lists.php.net, Leigh References: Message-ID: Date: Tue, 14 Jun 2016 20:14:31 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:UI0pTw22c8LOD0zWgn5NiUYRwe1LPUNYewsXDp5KXZf9jPoIgVh XAAV+bAsuZ+jqjn4QqTdLYZvS5IgSUNa1hxThL1aggB/RFHjkMu35iS4H0ZwjFn+s1W6CE5 9UdQcDn45FXkF05cM5yvfzMYIToM0GvD6dBID/xH0CzQE7OhF/ulJCwhbzbLAV0fG4E16+F XJlawcrWgs+6jiccMCN/w== X-UI-Out-Filterresults: notjunk:1;V01:K0:V2S3qiiID5c=:bCcXgxkn+WWDtIrRaMw7t/ 1ioUXJjVJ3PsSroItzixMF3d//HvwEcJmjDcfJcqWDfgH3veOvAe4p/qotLbXDZZsyHafRAs2 +oJNpWp8+Q75TQeaYoNT6GgcppOtvgU97JFydkkYzQc/a9MY+JqYh8QqMgoASAqmWTFibkGko J1pGeAjvL/U1INqmyeA4idOlODA3X3Cl3kj1lyN8CPXuHTy0sSWrExcPZOrrx7XAAvd4HaUJ8 D/tjwNj8PeVwBCrdsneCU7gZR9HoN9s+3rGDubBlMAOeWwpLc5mNxC/PBjC1xD5uk3FqMzTl7 wEQDDpTa3S+QxW/YmfamWbNvduUCFLZIsly7SuSiHPwdHlwqQ9E1c+9IfwoWfykyVmoK2+nXx oYfJq4Y/RaVU8CovP3tui+LdtVpiEbX2n67gujcw8/reiso92uvfO+q5Up7fL8M5YuSaxb7YO lRFsov/DbjSs62dW9V2MsVclfUYjg2pJfKVpg3YM6TAelhXEY0pETH2XKQyf8g4UL69N7wz14 f1UxOvcpun/uFHY+5xjUkAb5CW2lkxw6Y+8FWXV7Ou2rGa84F4j0KX49kxWVnT0WcEX1ZqjZh wjHL1gytj+jJbiBgZDgN5FBJ3BOTMYJ39nEAegp+IwTtUT+6kfI6aIpac93R6uAPJi3+24GT6 tNiULlE9N9Kz+yziRbVihnjSX286g2eB0bBedfLB16LrLCcw73azvvyaVT/h9gX6fbDQ4tV0b y81dSdJCqO6VjoOMEQsR+MDO5Fuz20egkDKvTJmdbI5uDC8GodcdFC43eJcYzSNfN1NiqHRuL Y8KD2Qz Subject: Re: [PHP-DEV] [RFC] RNG fixes From: cmbecker69@gmx.de (Christoph Becker) On 14.06.2016 at 19:45, Fleshgrinder wrote: > On 6/14/2016 6:46 PM, Leigh wrote: >> The issues I want to bring up for discussion are. >> >> * Replacing mt_rand() and rand() to a strong, modern RNG. >> * Alternatively, fixing the current mt_rand() implementation to make it >> standard >> * Aliasing rand() to mt_rand() to improve output and cross-platform support >> * Fixing RAND_RANGE for large ranges. >> * Replacing insecure uses of php_rand() with php_random_bytes() >> * Making the array_rand() algorithm more efficient >> >> The RFC can be found here: https://wiki.php.net/rfc/rng_fixes > > Why do we need so many functions to get a random int anyways if we now > have random_int()? I would like to see all of them deprecated and > removed in PHP 8.0. In my opinion, we need at least one random function which yields reproducible values. -- Christoph M. Becker