Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92226 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11929 invoked from network); 12 Apr 2016 13:30:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Apr 2016 13:30:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=colinodell@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=colinodell@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.52 as permitted sender) X-PHP-List-Original-Sender: colinodell@gmail.com X-Host-Fingerprint: 209.85.218.52 mail-oi0-f52.google.com Received: from [209.85.218.52] ([209.85.218.52:34432] helo=mail-oi0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 25/BC-28094-878FC075 for ; Tue, 12 Apr 2016 09:30:32 -0400 Received: by mail-oi0-f52.google.com with SMTP id s79so21923766oie.1 for ; Tue, 12 Apr 2016 06:30:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uyPdEIcLmW5sWvgOdmVjbjYWTJGS/zIrjJFzzMZmSU0=; b=JZ6IxAETVaDK3XatYtXXuY/SYPHWZwXcJLc9sR1lAwZ/aP5OuOGN8L8T576pF2+SmM RpX+jHZOHnzk5bQMIXmWgJUL3cYj5OC37sGB2tCZxweXoKGMxYIbHsm2HVp4majNxojc 5oYDXInR2l1gbrlf37PCdHeRqntSoICgTrdX0/cBezQvBKFPn2pYw94T2Ijz0BxxCT5P xC7o6d3aImXGyHt5JfLhgkXUGwoFkNJz7xrDnPaDvCWGWROR5nvmtnfYZeQgXwpDaZI0 feXnLD3BeGOHqC3jixr4rtlK4YrLAgEqTPv3m5kUt3TbWss2uuMcTfW7/gihPRm/O/7d PZ5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uyPdEIcLmW5sWvgOdmVjbjYWTJGS/zIrjJFzzMZmSU0=; b=OVQGvW5KhANLbnJM3xtajxGsJCiYpIiTibnTL6Na88xz/mwJG0fFV5KagjJ/XlGELX JUIzsac0vEui0qcX7w/B7ZyelkGaDfRHFHBxqNRklTdcawFyC1CQfaeMhp0/bwYnr2+s arHltxYwu+y9VeNfeBbf4+JxaicuF5ZLfKDbZlxzpqFuI6tWLMKpDMmvr/WnGMx/Mkm5 mH8GGvGDMUDUanweO+bxA3bZ2n6q4DVbY44IRnWm966R+4G82ajrc62P079Vq0wLC4p5 DIyS3rjk/ONtmPOY0NOIeHBbH6ezc7/zQiSFyS7pLW4eOYr2PnTKEJeZu4YGl3jbHWzw oJcQ== X-Gm-Message-State: AOPr4FVl3XAyE4zervfZ9NhJpuho6xBwZF8CK9pBOHN9zFr3awgvl/EPEbguZnr2fa5tav8ovg6OsWikCEA1hA== X-Received: by 10.157.34.136 with SMTP id y8mr1592671ota.117.1460467830087; Tue, 12 Apr 2016 06:30:30 -0700 (PDT) MIME-Version: 1.0 References: <570C9101.5060500@php.net> In-Reply-To: Date: Tue, 12 Apr 2016 13:30:20 +0000 Message-ID: To: Pierre Joye Cc: PHP internals , Sebastian Bergmann Content-Type: multipart/alternative; boundary=94eb2c0433c037e86b053049aad4 Subject: Re: [PHP-DEV] UUID From: colinodell@gmail.com ("Colin O'Dell") --94eb2c0433c037e86b053049aad4 Content-Type: text/plain; charset=UTF-8 > > I would prefer not to refer to random to avoid any confusion with the > recent added random function. As uuid is not crypto safe and is not aimed > to. Users will then hopefully not think about using instead of the random > api. > > Also uuid alone may be a problem (bc?) It sounds like a logical choice. > Alternatively uuid_create (). > Ah yes, good point. I was thinking random_uuid() might be good for v4 UUIDs, and that a parameter might be needed, but I failed to make the connection that not all UUID versions are random - my apologies for not catching that before hitting send. I like the idea of uuid() or uuid($version = 4) --94eb2c0433c037e86b053049aad4--