Re: Request #65501 uniqid(): More entropy parameter should be true by default

From: Date: Thu, 22 Aug 2013 12:06:27 +0000
Subject: Re: Request #65501 uniqid(): More entropy parameter should be true by default
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-68597@lists.php.net to get a copy of this message
On Thu, Aug 22, 2013 at 12:58 PM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote: > Hi all, > > I realized that not many users are using "more entropy" parameter > Therefore, I made > > Request #65501 uniqid(): More entropy parameter should be true by default > https://bugs.php.net/bug.php?id=65501 > > The comment title explains what this FR is. > > Any comments? > I don't really have an opinion on this, but one comment: With more_entropy=false the uniqid() function is *horribly* slow on unix system (because it does a usleep). Setting more_entropy=true usually makes the call a few orders of magnitude faster. So that might be another advantage to enable by default ;) Nikita

« previous php.internals (#68597) next »