Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99166 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90563 invoked from network); 25 May 2017 10:06:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 May 2017 10:06:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@fleshgrinder.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=php@fleshgrinder.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fleshgrinder.com from 77.244.243.82 cause and error) X-PHP-List-Original-Sender: php@fleshgrinder.com X-Host-Fingerprint: 77.244.243.82 mx101.easyname.com Received: from [77.244.243.82] ([77.244.243.82:56479] helo=mx101.easyname.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9E/24-10292-98CA6295 for ; Thu, 25 May 2017 06:06:01 -0400 Received: from cable-81-173-132-37.netcologne.de ([81.173.132.37] helo=[192.168.178.20]) by mx.easyname.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1dDpeW-0001l7-59; Thu, 25 May 2017 10:05:57 +0000 References: To: php-internals , ben@benramsey.com Cc: Marco Pivetta Message-ID: Date: Thu, 25 May 2017 12:05:37 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="h5aQx1Ft8DeloAmS5fNsQn8mTxSoe4Oad" X-DNSBL-PBLSPAMHAUS: YES Subject: Re: [PHP-DEV] [RFC] [Discussion] UUID From: php@fleshgrinder.com (Fleshgrinder) --h5aQx1Ft8DeloAmS5fNsQn8mTxSoe4Oad Content-Type: multipart/mixed; boundary="frEWV7uRBTOkLboIc2vUqwuPVPJ7mRxPF"; protected-headers="v1" From: Fleshgrinder To: php-internals , ben@benramsey.com Cc: Marco Pivetta Message-ID: Subject: Re: [PHP-DEV] [RFC] [Discussion] UUID References: In-Reply-To: --frEWV7uRBTOkLboIc2vUqwuPVPJ7mRxPF Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 5/24/2017 10:12 PM, Ben Ramsey wrote: > I'll take a look at the patch soon. If this is accepted to the core, > I'll probably add an adapter to ramsey/uuid that wraps this > implementation. The point of the "over engineering" there is to provide= > choice. Some users want to generate bytes from sources other than > random_bytes() (i.e., libsodium) or encode UUIDs in different ways > (i.e., ordered time). A UUID generator in the core will only help to > improve ramsey/uuid, providing more choice and better performance. >=20 > I may split out the less-used adapters and codecs into separate > components in version 4 or 5 of ramsey/uuid, though, since most users > don't need anything other than the default. >=20 > -Ben >=20 Yes, exactly. The provided implementation does not have any of the options your library offers. There are no special formatters, no accessors for e.g. time (not applicable to v3, v4, and v5), no RNG choices, no mutability, =2E.. well ... nothing. It is just a straight UUID implementation. I also hope that this implementation will help to get rid of uniqid at some point. --=20 Richard "Fleshgrinder" Fussenegger --frEWV7uRBTOkLboIc2vUqwuPVPJ7mRxPF-- --h5aQx1Ft8DeloAmS5fNsQn8mTxSoe4Oad Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJZJqx5AAoJEOKkKcqFPVVrSHcP/jTc1fI7lTd45S010Ym6H86+ MJzXIZ08Yx6GMcxl+1PDO8A4Co77nsMR5ysaPbMJUDcxHdwwRSmvA2N/QgElCQN3 PDopJoAVTYZhVrhGBvAGbS6bp042eWzTw8fmpIUtqOYjpXQvvw0ts+Amv9BRPdHs GGS6QE3d3q9nRIOVfD+DSzgDeLDCc51cO8joAMgaPLtB1DCA65t+CXY9NGv1rrfY sb3bmjg+WZpPUzrY32HOwxpsEa8Q5oh4X58G7dYpv2QMEhXxLsoGcqLs5yiZRsIn xKqRwBpFV2bVmABtmjHxgb4EFfcPWFFsPfRSQcAT9N/WwNcEZAFSzWP5TynvkLgZ AiZMsMMopOXbrI1b5LtEiCMwqOl96dGnzrUPLSN+lrbaSdiipdhpAZ5JPbzoQ6/O jPbXDxWg8VV8/1VHwqHhx5MaKylZNLpMbefHUaxY1bknmGKKsQVCVQ6o22StlUEE pyvs5M/sl+r9Ntiz/4T2Z8mYShchACiWfiLK8TRfK0+TbWR1dIEBickYNIUBerBm +U7jDQ7tr0OpOn/svrwW17VirKsGJ+0w3rePlcz9nTPW3NeIIJ4GeHiJhkVV04pO H02Kfqjp+9E00P4C6YuJRo/DrSzciCiajDMEo/Fsf3Hx/TYkiQ5d11Z91tcfB65U ONL14Mt0V7ng4NP0tBuR =ylSu -----END PGP SIGNATURE----- --h5aQx1Ft8DeloAmS5fNsQn8mTxSoe4Oad--