Ben Ramsey
5c38d41ccb
Use sprintf() to prefix zeros on the returned node hex string
2017-09-22 13:03:41 -05:00
Ben Ramsey
1ec0826a40
Set the multicast bit for random nodes, according to RFC 4122, §4.5
...
Borrows the idea from cf1c981414 to
properly set the multicast bit to the "least significant bit of the
first octet of the node ID."
When merged, this will close #171 and #170
2017-09-22 12:54:15 -05:00
Ben Ramsey
aab08bb08a
Use random_bytes() to generate a random node
2017-09-22 12:26:34 -05:00
Anton Vasetskiy
879fe3cfe2
Fix RandomNodeProvider: change the max value in mt_rand() call to prevent invalid node generation
2016-07-28 16:44:26 +03:00
Ben Ramsey
d975f0f143
Add docblocks for classes and interfaces in Ramsey\Uuid\Provider namespace
2015-09-27 13:02:30 -05:00
Ben Ramsey
e006f669ad
Adding common docblock file header
2015-07-15 13:59:52 -05:00
Ben Ramsey
d67c3490a8
Change namespace to "Ramsey"; closes #48
2015-04-25 12:11:37 -05:00
Ben Ramsey
958643e7b6
Introduce Provider namespace and move Node and Time classes into it
2014-11-08 16:16:44 -05:00