Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96401 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45571 invoked from network); 18 Oct 2016 00:21:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Oct 2016 00:21:59 -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:39295] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D3/60-40890-32B65085 for ; Mon, 17 Oct 2016 20:21:57 -0400 Received: (qmail 110016 invoked by uid 89); 18 Oct 2016 00:21:52 -0000 Received: from unknown (HELO mail-qk0-f171.google.com) (yohgaki@ohgaki.net@209.85.220.171) by 0 with ESMTPA; 18 Oct 2016 00:21:52 -0000 Received: by mail-qk0-f171.google.com with SMTP id f128so253298575qkb.1 for ; Mon, 17 Oct 2016 17:21:51 -0700 (PDT) X-Gm-Message-State: AA6/9RkSekUeZWauQqYjVT4sOmCqUUxbkJyxa+47FKSagvlKfX+FEpcOgCjoapsPhA+ATX1vYzcIK/l4yjVYOw== X-Received: by 10.55.215.87 with SMTP id m84mr201134qki.196.1476750105817; Mon, 17 Oct 2016 17:21:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.84.168 with HTTP; Mon, 17 Oct 2016 17:21:05 -0700 (PDT) In-Reply-To: References: Date: Tue, 18 Oct 2016 09:21:05 +0900 X-Gmail-Original-Message-ID: Message-ID: To: Leigh Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Re: [RFC][DISCUSSION] Improve uniqid() uniqueness From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi all, I committed this patch that simply use php_random_bytes() w/o any BC. http://git.php.net/?p=php-src.git;a=commitdiff;h=48f1a17886d874dc90867c669481804de90509e8 I thought there is php_random_int(), but it's not. So this is one of the best patch for this purpose. There is bug reports that request stronger uniqueness by default. I may address this issue, but I would like to fix other things for the time being. Regards, -- Yasuo Ohgaki