Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97642 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18017 invoked from network); 9 Jan 2017 21:27:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Jan 2017 21:27:53 -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:34424] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5F/C2-31343-65004785 for ; Mon, 09 Jan 2017 16:27:52 -0500 Received: (qmail 28623 invoked by uid 89); 9 Jan 2017 21:27:47 -0000 Received: from unknown (HELO mail-wj0-f175.google.com) (yohgaki@ohgaki.net@209.85.210.175) by 0 with ESMTPA; 9 Jan 2017 21:27:47 -0000 Received: by mail-wj0-f175.google.com with SMTP id ew7so58621526wjc.3 for ; Mon, 09 Jan 2017 13:27:47 -0800 (PST) X-Gm-Message-State: AIkVDXLn+m4tC6B2ZZUX3C+Nf+DD3HavTZU973uBaMvYgwrJej5tYzAK+xSIt/3mfxXGxeywHxRFtb49CRGp5Q== X-Received: by 10.194.114.101 with SMTP id jf5mr8363283wjb.21.1483997260731; Mon, 09 Jan 2017 13:27:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.195.12.8 with HTTP; Mon, 9 Jan 2017 13:27:00 -0800 (PST) In-Reply-To: References: <7500b0c6a50baf49beac70ae01e8b50d@koti.fimnet.fi> <87o9zhju4d.fsf@lil.giraffy.jp> <87k2a5jcx5.fsf@lil.giraffy.jp> Date: Tue, 10 Jan 2017 06:27:00 +0900 X-Gmail-Original-Message-ID: Message-ID: To: =?UTF-8?Q?Lauri_Kentt=C3=A4?= Cc: Kazuo Oishi , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a1130d3c892df0a0545b009a6 Subject: Re: [PHP-DEV] Use decent entropy for uniqid($prefix, TRUE) From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a1130d3c892df0a0545b009a6 Content-Type: text/plain; charset=UTF-8 On Tue, Jan 10, 2017 at 6:07 AM, Yasuo Ohgaki wrote: > > BTW, it's surprising that I got roughly the same performance for both > php_combined_lcg() and php_random_int() with current system (Fedora 25). I > used to get little slower result for php_random_int() with Fedora 24. It > seems PRNG gets better. There is no advantage to use php_combined_lcg() on > newer systems. > Correction. I cannot understand the result so checked to see if something wrong. Sym link to php binary is broken :( I still get slower result with php_random_int(). It's cost of better entropy should be ignored. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a1130d3c892df0a0545b009a6--