Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95833 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94133 invoked from network); 9 Sep 2016 08:46:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Sep 2016 08:46:55 -0000 Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 217.147.176.214 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 217.147.176.214 mail4-2.serversure.net Linux 2.6 Received: from [217.147.176.214] ([217.147.176.214:40971] helo=mail4.serversure.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FB/CE-61313-DF672D75 for ; Fri, 09 Sep 2016 04:46:54 -0400 Received: (qmail 30396 invoked by uid 89); 9 Sep 2016 08:46:49 -0000 Received: by simscan 1.3.1 ppid: 30390, pid: 30393, t: 0.0997s scanners: attach: 1.3.1 clamav: 0.96/m:52/d:10677 Received: from unknown (HELO ?10.0.0.7?) (lester@rainbowdigitalmedia.org.uk@81.138.11.136) by mail4.serversure.net with ESMTPA; 9 Sep 2016 08:46:49 -0000 To: internals@lists.php.net References: Message-ID: <95adea29-c064-a4a1-d86e-937a79530202@lsces.co.uk> Date: Fri, 9 Sep 2016 09:46:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Make uniqid() more unique From: lester@lsces.co.uk (Lester Caine) On 09/09/16 06:12, Yasuo Ohgaki wrote: > I would like to > - Enable more entropy parameter on by default > - Add 256 bits random value (64 chars by HEX) from > php_random_bytes() instead of 1 char from php_combined_lcg() > > If all of us think "just fix it", then I'll just fix this in master w/o RFC. The problem with 'fixing it' is perhaps what are all the requirements. Certainly I use a version supplied with Firebird which as been 'fixed' so that indexing produces a much more even spread across the search tree. I will not pretend to understand all the details, but the results are demonstrable. I presume similar methods are used by the other database engines, so would it be worth seeing if there is some common 'fix' which gives good results across a few databases. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk