avtobiff / erlang-uuid

Erlang UUID
https://github.com/avtobiff/erlang-uuid
GNU Lesser General Public License v3.0
113 stars 77 forks source link

UUIDv1 generation is incorrect #4

Closed saurik closed 11 years ago

saurik commented 11 years ago

If I take a UUIDv1 generated with uuidgen -t and then take one generated by this library (less than a second later on the same machine, with uuid:to_string(uuid:uuid1())), the timestamp is wrong in the erlang-uuid version: '2012-12-07 05:27:59+0000' (uuidgen) vs. '1935-10-13 20:22:43+0000' (erlang-uuid). (I am parsing these by way of inserting them as columns into Cassandra, which sorts TimeUUID columns by their associated timestamp and displays them with their time value, not their UUID value, when selecting data at the cqlsh console.)

avtobiff commented 11 years ago

Sorry for the late reply. Apparently this is not fixed by the recent updates to UUID v1. Investigating at the moment.