Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97982 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41524 invoked from network); 27 Jan 2017 03:01:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jan 2017 03:01:06 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@ohgaki.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@ohgaki.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ohgaki.net designates 180.42.98.130 as permitted sender) X-PHP-List-Original-Sender: yohgaki@ohgaki.net X-Host-Fingerprint: 180.42.98.130 ns1.es-i.jp Received: from [180.42.98.130] ([180.42.98.130:43194] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7C/35-28703-0F7BA885 for ; Thu, 26 Jan 2017 22:01:06 -0500 Received: (qmail 69497 invoked by uid 89); 27 Jan 2017 03:01:01 -0000 Received: from unknown (HELO mail-wm0-f43.google.com) (yohgaki@ohgaki.net@74.125.82.43) by 0 with ESMTPA; 27 Jan 2017 03:01:01 -0000 Received: by mail-wm0-f43.google.com with SMTP id r144so115715011wme.1 for ; Thu, 26 Jan 2017 19:01:00 -0800 (PST) X-Gm-Message-State: AIkVDXJfXWZYBg8zHq1ow3wozS1anlJJx3ijz4fCAPNWfYzgg8UXH0wyr7gUpT4O5M4h/vF5ijoiDzBsPYZXEg== X-Received: by 10.223.160.114 with SMTP id l47mr5185931wrl.73.1485486054554; Thu, 26 Jan 2017 19:00:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.195.12.8 with HTTP; Thu, 26 Jan 2017 19:00:13 -0800 (PST) In-Reply-To: <23aa87eb-4dc6-3773-94b0-02e6c3ba78ef@thefb.org> References: <71c26cd6df6f59e76dafd31647852c2e@koti.fimnet.fi> <142a3537a99809cf23d78e0eaadc3aef@gmail.com> <7a359bb08b0ad8b046534c15492cec91@gmail.com> <8cfe7a3ea5a05fc3e5347e9af848ada0@gmail.com> <23aa87eb-4dc6-3773-94b0-02e6c3ba78ef@thefb.org> Date: Fri, 27 Jan 2017 12:00:13 +0900 X-Gmail-Original-Message-ID: Message-ID: To: Tom Worster Cc: =?UTF-8?Q?Lauri_Kentt=C3=A4?= , Leigh , Nikita Popov , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=94eb2c18468699c65705470aac8f Subject: Re: [PHP-DEV] Re: Improving mt_rand() seed From: yohgaki@ohgaki.net (Yasuo Ohgaki) --94eb2c18468699c65705470aac8f Content-Type: text/plain; charset=UTF-8 Hi Tom, On Sun, Jan 22, 2017 at 1:26 AM, Tom Worster wrote: > On 1/20/17 9:55 PM, Yasuo Ohgaki wrote: > >> CSPRNG failure is like BUS error, i.e. hardware error. CSPRNG shouldn't >> fail with healthy hardware/OS. >> > > One would like to think so but low entropy environments exist. The problem > may even be getting more widespread as embedded systems become more > widespread. > > Could you tell us which platforms could have problem with CSPRNG usage? > > Therefore, we should not add poor fallback >> code for it. >> > > I don't see a need or value in breaking programs that previously worked > properly in the absence of a functioning system CSPRNG. > > mt_rand() and uniqid() were not secure before so seed them securely if you > can otherwise let them work as they did before. As I stated before, I'm supposing CSPRNG availability is not a problem for PHP environment today, OSes provide CSPRNG value unless there is something really bad things happened. i.e. hardware failure, serious OS bug. I could be wrong about this. Do you have idea what platforms will be affected? Thank you, -- Yasuo Ohgaki yohgaki@ohgaki.net --94eb2c18468699c65705470aac8f--