Req->Doc #65501 [Asn->Csd]: uniqid(): More entropy parameter should be true by default

From: Date: Sun, 26 Jan 2014 21:54:20 +0000
Subject: Req->Doc #65501 [Asn->Csd]: uniqid(): More entropy parameter should be true by default
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10892@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65501&edit=1 ID: 65501 Updated by: yohgaki@php.net Reported by: yohgaki@php.net Summary: uniqid(): More entropy parameter should be true by default -Status: Assigned +Status: Closed -Type: Feature/Change Request +Type: Documentation Problem Package: Unknown/Other Function Operating System: any PHP Version: Irrelevant Assigned To: yohgaki Block user comment: N Private report: N New Comment: Made a doc issue. Warning is added to the doc. Previous Comments: ------------------------------------------------------------------------ [2013-08-22 10:54:22] yohgaki@php.net I think uniqid() should have "more entropy" parameter first place. Since we have it, we should provide better default. ------------------------------------------------------------------------ [2013-08-22 10:51:57] yohgaki@php.net Description: ------------ uniqid()'s 2nd parameter(more entropy) is optional and false by default. http://jp1.php.net/uniqid Without more entropy, uniqid() may produce non unique id even if the name states it. This could be security issue under certain cases. Making it true by default would not break any apps, therefore it should be true by default. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=65501&edit=1

« previous php.doc.bugs (#10892) next »