Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68618 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17046 invoked from network); 24 Aug 2013 10:14:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Aug 2013 10:14:54 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.51 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.219.51 mail-oa0-f51.google.com Received: from [209.85.219.51] ([209.85.219.51:58661] helo=mail-oa0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D8/11-05399-D9788125 for ; Sat, 24 Aug 2013 06:14:54 -0400 Received: by mail-oa0-f51.google.com with SMTP id h1so1786376oag.24 for ; Sat, 24 Aug 2013 03:14:51 -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=QIc9UZeo9D1IeysBSSIH1ZA/K7InzNbYse8e5mjv51Y=; b=vE2pGMZInoQ4yIyy8iecT00F8g+WnMynXu1Ynp32+ONDTaTLk0mKVkv5f/vL7B2ttd cry64Eb20idOYbTj57CRSsu0GeqCAmwqqLMZ6FlBuUz0M3XiZ/8Vh9R/bllqRw0cmPGL AjEGuX+OloAnfyy/hJrjMXpqk2pBMX8DokNpMxwpwplL8wad8aSDq+pfgrhgrApEsa/d j6hxA6zYBjxVUrDYIHKeug/M/8/Ef8Kfx540yuJ1NQSSNh2AUpB6pUV4oSwj5+CgupIG D+/V3L9PpCDyJWYbJ9nsV4VNCw+k0CEiPj9zkU4Da9cKY6BmLDRLQdvQ/UIxBWxRVTmU WhNA== MIME-Version: 1.0 X-Received: by 10.60.80.8 with SMTP id n8mr3872170oex.33.1377338927386; Sat, 24 Aug 2013 03:08:47 -0700 (PDT) Received: by 10.182.87.167 with HTTP; Sat, 24 Aug 2013 03:08:47 -0700 (PDT) In-Reply-To: <9FD8BA4C-8B23-497B-8471-04F95E0C1935@strojny.net> References: <9FD8BA4C-8B23-497B-8471-04F95E0C1935@strojny.net> Date: Sat, 24 Aug 2013 12:08:47 +0200 Message-ID: To: Lars Strojny Cc: Yasuo Ohgaki , David Muir , Leigh , Sebastian Krebs , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e0116067880971804e4aeb5f7 Subject: Re: [PHP-DEV] Request #65501 uniqid(): More entropy parameter should be true by default From: nikita.ppv@gmail.com (Nikita Popov) --089e0116067880971804e4aeb5f7 Content-Type: text/plain; charset=ISO-8859-1 On Sat, Aug 24, 2013 at 11:28 AM, Lars Strojny wrote: > Hi everyone, > > adding UUID functionality to the core would be very cool. Especially in > times where we create more and more primary keys in the code, not in the > database. > > cu, > Lars > We already have a great (version 4) UUID implementation called mcrypt_create_iv, just minus the fixed sequences and fancy formatting. Apart from moving this to core (not requiring mcrypt/openssl) and maybe adding alphabet support, I don't immediately see why this wouldn't be sufficient. Why do we need fancy UUID formatting or "unique hashes" (whatever that is supposed to be...)? Nikita --089e0116067880971804e4aeb5f7--