Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96413 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77388 invoked from network); 18 Oct 2016 07:36:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Oct 2016 07:36:50 -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:40024] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/55-40890-011D5085 for ; Tue, 18 Oct 2016 03:36:49 -0400 Received: (qmail 47424 invoked by uid 89); 18 Oct 2016 07:36:45 -0000 Received: from unknown (HELO mail-qk0-f178.google.com) (yohgaki@ohgaki.net@209.85.220.178) by 0 with ESMTPA; 18 Oct 2016 07:36:45 -0000 Received: by mail-qk0-f178.google.com with SMTP id z190so275355016qkc.2 for ; Tue, 18 Oct 2016 00:36:45 -0700 (PDT) X-Gm-Message-State: AA6/9RmrEQ7QmFIjVOHSC+uWcpBog9ixR0QklwhAyWcKkG+GI6OOnU1JsnxZ88tLiE4j6MIz+nOrf6WNDRr5jg== X-Received: by 10.55.121.131 with SMTP id u125mr1558743qkc.114.1476776199469; Tue, 18 Oct 2016 00:36:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.84.168 with HTTP; Tue, 18 Oct 2016 00:35:58 -0700 (PDT) In-Reply-To: References: Date: Tue, 18 Oct 2016 16:35:58 +0900 X-Gmail-Original-Message-ID: Message-ID: To: Niklas Keller Cc: Leigh , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Re: [RFC][DISCUSSION] Improve uniqid() uniqueness From: yohgaki@ohgaki.net (Yasuo Ohgaki) On Tue, Oct 18, 2016 at 4:16 PM, Niklas Keller wrote: > Yasuo Ohgaki schrieb am Di., 18. Okt. 2016, 08:47: >> >> Hi Niklas, >> >> On Tue, Oct 18, 2016 at 3:36 PM, Niklas Keller wrote: >> > Yasuo Ohgaki schrieb am Di., 18. Okt. 2016, 02:21: >> >> >> >> Hi all, >> >> >> >> I committed this patch that simply use php_random_bytes() w/o any BC. >> > >> > >> > Doesn't this throw now in some environments where /dev/urandom isn't >> > readable? >> >> It could happen, but such system should not be used now a days. > > > Sure, but it did happen that shared hosts block it, noticed during > random_compat adoption. > > You claimed there isn't any BC break. The line should be "There is no BC for usable systems" Any file permission could disturb PHP script execution, couldn't it? I think it's nothing special for /dev/urandom. User should set up system correctly to use PHP. Then there is no BC at all. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net