Added UIDGenerator class for getting statistically unique IDs.
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 5 Dec 2012 19:48:46 +0000 (11:48 -0800)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 7 Feb 2013 17:38:12 +0000 (17:38 +0000)
commite53902e550515fd0a12bfd07d71fbef1847fc6f7
treea75fe44badb359857ddb5a7cceaaa2fecb26d099
parent2ee0e3fd0d3930a60bbdb43a9a368ae3e5d47588
Added UIDGenerator class for getting statistically unique IDs.

* This is useful for making IDs for object in partitioned stores.
* The "UID" functions are not called "UUIDs" since they don't follow RFC4122.
  This is for performance reasons since the ID fields tend to be indexed.
* This includes newUUIDv4(), which is compliant with the aforementioned RFC.

This reverts commit 86f895bfe395d9fe00792422b052e7ebf43c7ae9.

Change-Id: I989626dfb7976d17f5931a34fe040f41cf14dfe3
includes/AutoLoader.php
includes/UIDGenerator.php [new file with mode: 0644]
tests/phpunit/includes/UIDGeneratorTest.php [new file with mode: 0644]