Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68597 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78818 invoked from network); 22 Aug 2013 12:06:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Aug 2013 12:06:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.182 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.214.182 mail-ob0-f182.google.com Received: from [209.85.214.182] ([209.85.214.182:43512] helo=mail-ob0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EA/5B-11927-5CEF5125 for ; Thu, 22 Aug 2013 08:06:30 -0400 Received: by mail-ob0-f182.google.com with SMTP id wo10so3448679obc.27 for ; Thu, 22 Aug 2013 05:06:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=4V7k4nWfJUbbjXTPwfcEq43cakWgJMvepkOXDlKyMZo=; b=dttdxHAsxDBMdfiy9toUwdY06jNKVu8Cr6Y2Wqckg0NysnDn+bD8lxqUTOUVX5b3w4 OvOQ8XawLNEHjttjRz6PXrcrZo1eUWASYqt52Ku+0SshiShjCc1cYakNAm5lR+kaCLTa gRROoq1Nc/DPz5ahHhGS3OjNsuJrYggKAl8CwDQp0I38ueAZF4GBzpiuKOZXean8OinO 8z5q/sLyDwIj2Y4ucZv7lkfMjlGZKGisE0jIhSn5TZ468y39T05b93JnmsCYAeZVhCsl GSPUvN/D75rnbb21DyOgh62867qbmXzs2U351p499mQQUP41f9FHcFv75d35DQDZb4rZ 6jLg== MIME-Version: 1.0 X-Received: by 10.182.148.8 with SMTP id to8mr13833469obb.17.1377173187395; Thu, 22 Aug 2013 05:06:27 -0700 (PDT) Received: by 10.182.87.167 with HTTP; Thu, 22 Aug 2013 05:06:27 -0700 (PDT) In-Reply-To: References: Date: Thu, 22 Aug 2013 14:06:27 +0200 Message-ID: To: Yasuo Ohgaki Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e0139fc76a1052104e4881ed8 Subject: Re: [PHP-DEV] Request #65501 uniqid(): More entropy parameter should be true by default From: nikita.ppv@gmail.com (Nikita Popov) --089e0139fc76a1052104e4881ed8 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Aug 22, 2013 at 12:58 PM, Yasuo Ohgaki 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 --089e0139fc76a1052104e4881ed8--