Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97871 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94086 invoked from network); 19 Jan 2017 11:26:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jan 2017 11:26:03 -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.215.48 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.215.48 mail-lf0-f48.google.com Received: from [209.85.215.48] ([209.85.215.48:35878] helo=mail-lf0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AA/B0-00729-A42A0885 for ; Thu, 19 Jan 2017 06:26:02 -0500 Received: by mail-lf0-f48.google.com with SMTP id z134so33840817lff.3 for ; Thu, 19 Jan 2017 03:26:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=QH1Dn9oV2Jo/XIe1ErHe3jfYXH0Z+t+h6oZqfkX49Jo=; b=AOlbLXpJJZXhLVSaBZqYQ+7pDVPMO9bPRaLN7ghbVju8RQXXrgPjRx/4FBe0vwdAVf DB7uxkLdHGj/JpNfiIxT4hrq1rSdcXvF41BvsXjMp0bVHGsWCMuKoo5oS+w84aZXfKcS LBLyiKiyzxW7ut+PQcJKs9ZkQh+ZpwUmfduppbt4aZpARarVcr+jnF3TrXmhfpfY0Lnc bb/+fcZyUKrGDKcpXKotO08jf+Kw2R8VTieZK59HCXfy67msKLxhnJ/HESAnd8kFBkna E0wb9mJtKXUbTxZk2oFiXvXrQy/FkwETIps0eaI3zlPDunGJPN9jivphuAcuuQ3wWYnG SG8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=QH1Dn9oV2Jo/XIe1ErHe3jfYXH0Z+t+h6oZqfkX49Jo=; b=sbkdrwozmxF6nWI6wd5WozjG/mAZzmXx8C44z+fxm6dA3yzcQkQV/X5uxrcA76Pzd1 8otu4Gm+4ymhVrvxgcghy1u7undN7UHwDj4UAWc3SHfQJjNalBKQW4UcHgpiLQqCKfd5 ydTGMiaCkZSIRBmKP4RE72te5JPZw0OIFTg841vZZEUixulMZVldoMWLfB5Y7OnHA3S3 IuTA8flUJTwBj01nciKlshyS2Vz0RIrlgbyT0lf7ltcQfjupnsIRRZ6HpsJe3g45XRFK zDaZrTrUkQz0s/PhLZiJmJrgXXLKl96BXfc2Gjna73mtYnp1oURTxfIjw5Yq4kVLz7ug Amng== X-Gm-Message-State: AIkVDXJ4lUq9zR8oaLNlsVTQyOKCldPD83WOwrsAHKhcmwkIiqoRpxv/0Ni5Mn7N7Ditr0fCNPd4hvjHdNsLaA== X-Received: by 10.25.43.8 with SMTP id r8mr2568735lfr.26.1484825158534; Thu, 19 Jan 2017 03:25:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.193.83 with HTTP; Thu, 19 Jan 2017 03:25:57 -0800 (PST) In-Reply-To: References: <71c26cd6df6f59e76dafd31647852c2e@koti.fimnet.fi> <142a3537a99809cf23d78e0eaadc3aef@gmail.com> <7a359bb08b0ad8b046534c15492cec91@gmail.com> <8cfe7a3ea5a05fc3e5347e9af848ada0@gmail.com> Date: Thu, 19 Jan 2017 11:25:57 +0000 Message-ID: To: Yasuo Ohgaki Cc: =?UTF-8?Q?Lauri_Kentt=C3=A4?= , Nikita Popov , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Re: Improving mt_rand() seed From: leight@gmail.com (Leigh) On 19 January 2017 at 01:10, Yasuo Ohgaki wrote: > > Thank you. I have to be able to modify patch, so I'll fetch your change to > my repo > and make PR. BTW, I don't think we have to care for failing CSPRNG. If it > failed, > application should fail properly, i.e. should terminate process/code. > PHP apps are not OS nor DBMS, they have freedom to terminate/exit when fatal > event happened. > You _do_ have to care if it fails. This is a breaking change if it is not handled. mt_rand is _not_ a CSPRNG, and therefore the absence of a CSPRNG should not make mt_rand unusable.