Re: [RFC][DISCUSSION] Improve uniqid() uniqueness

From: Date: Mon, 12 Sep 2016 04:41:59 +0000
Subject: Re: [RFC][DISCUSSION] Improve uniqid() uniqueness
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-95923@lists.php.net to get a copy of this message
Hi, > This is RFC for improving uniqid() uniqueness. > https://wiki.php.net/rfc/uniqid > > PR > https://github.com/php/php-src/pull/2123 > > If there is anything left to discuss, please comment. I think uniqid() should not be changed in BC break way, it should be left as is. You said, >> Almost all uniqid() usages do not care about return value chars nor >> length. Therefore, BC will be minimum. >> >> >> https://searchcode.com/?q=uniqid&loc=0&loc2=10000&lan=24 but you may be underestimating. I found that some code saved output of uniqid() without more_entropy to DB, in the search results. Output length change may cause problem in such case. And you are not supposed to forget that most of php codes are not open source and not opened to the public. In addition, you shoud hear "I expect the numbers to grow" about output of uniqid(), as reply to you. -- Kazuo Oishi

« previous php.internals (#95923) next »