Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96445 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59411 invoked from network); 18 Oct 2016 20:14:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Oct 2016 20:14:55 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.44 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.44 mail-wm0-f44.google.com Received: from [74.125.82.44] ([74.125.82.44:35228] helo=mail-wm0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4D/D3-40890-EB286085 for ; Tue, 18 Oct 2016 16:14:55 -0400 Received: by mail-wm0-f44.google.com with SMTP id c78so16625779wme.0 for ; Tue, 18 Oct 2016 13:14:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=Jbt8Q30BTJ3Ladnw6PTZwv1yFAazJs4dHggMbAH6jnY=; b=fOoN9igGVpruecTC+II8lv/TPINEl+ArI4WKvD/YziZ/5b6UgsmiRjHNEeatshuh2e 8++oyeUtdxOFiTlC4VQCwuI9+KGfCWt8nXyFjRV3PZFBBlqF/SGUW1Hv08jL722WikJn s8ARoOvd1jF6t84UJmZa28+2XoiNwwycKOrBTAyY9EjF7/KbL27OZQZ1ZTRU0KdNqqDI LN9GROy74jTG1o+2hJsWiPaofjiu7PzK0Akj3dPjQQQ7Sogi2/bOzL9II/WAAr5+MKjo xy9cGIoEYBBIK022Ya+fgaUYW9ReUS6dp+qkKYe3ie8y0VaDbGuISZQNY7PVqK/X3xcq qdAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=Jbt8Q30BTJ3Ladnw6PTZwv1yFAazJs4dHggMbAH6jnY=; b=RsBilej03Kme0/+U4xaBIZDRCKljvGMCzYIZjXyQxS8EKgrK9GWCPXB554Oun2l2ml Gk2tZWc2HhQO5rXmlTP2HI6KR3pOf102nsXa/KpPgs5nyWbqiykyNgawvpRfG4vr0l13 uGpuSNCjgAGDITcrDrEkvehYviiPhWrLh0Ie4brcadAErxB8N19Hm7lDypECSUcIcjfz 91lvgbQfaBkXNacttfaxxbmyVQub7Cju4BsyivoZ82RuMMaAOaKl5yLZWS62doiwVQXn lmZhF2Wt4Z+4pqpns0Lt3cHAnj6sO8g8hozJ86MshG7BeUa62JcDym8BiK2bxOrgpTyj zZlQ== X-Gm-Message-State: AA6/9Rl6bv9gfMOGZW1vIEbjidEjIV4qUHrOuqIqWPmdC6LuInOYdud/zGPj3cDc15dEWA== X-Received: by 10.194.216.99 with SMTP id op3mr1523796wjc.75.1476821691531; Tue, 18 Oct 2016 13:14:51 -0700 (PDT) Received: from [192.168.1.5] ([95.148.161.240]) by smtp.googlemail.com with ESMTPSA id e186sm1187628wma.5.2016.10.18.13.14.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Oct 2016 13:14:50 -0700 (PDT) To: internals@lists.php.net References: <070001d2295e$76b7d730$64278590$@belski.net> Message-ID: <51572015-11e8-a79b-3f88-0f748c22a498@gmail.com> Date: Tue, 18 Oct 2016 21:14:48 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: [RFC][DISCUSSION] Improve uniqid() uniqueness From: rowan.collins@gmail.com (Rowan Collins) On 18/10/2016 20:52, Yasuo Ohgaki wrote: > Which is important? > - uniqid() is not unique > - Really broken system that shouldn't be used may emit error Frankly, both are pretty rare cases. From the way you talk about it, everybody who uses uniqid() will get duplicate values all the time, when in fact, it's incredibly unlikely that anyone will even notice. I know when I've used it, it's for things like avoiding duplicate id attributes on an HTML page, or varying the URL of an asset by adding a token to the URL. It's perfectly usable as is for those situations, and I use it with full knowledge that it has a small chance of generating colliding values. I'm happy to see it improved, but I don't see any hurry, unless I'm completely misunderstanding the chances of seeing collisions. Regards, -- Rowan Collins [IMSoP]