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

From: Date: Tue, 13 Sep 2016 01:19:14 +0000
Subject: Re: [RFC][DISCUSSION] Improve uniqid() uniqueness
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-95966@lists.php.net to get a copy of this message
On Tue, Sep 13, 2016 at 10:14 AM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote: >> I use uniqid() daily in my test suites, even new ones (not >> much else), and >> introducing the . everywhere will just cause issues. >> Changing string length may also break everything. > > It seems you have code that will be broken. > Could you share the code and what it does? BTW, my proposed code does not use "." at all. More entropy is [0-v]{10} from php_random_bytes(). Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#95966) next »