Closed ADTC closed 8 years ago
Are you referring to:
"The version that neo4j-uuid generates when generating the UUID" That
@ADTC the UUID plugin uses http://stephenc.github.io/eaio-uuid/ internally to generate String UUIDs. You should be able to control the format by implementing com.graphaware.common.uuid.UuidGenerator
and providing that implementation to com.graphaware.module.uuid,UuidModule
.
At the moment however, there is no configuration exposed to allow you to specify a custom UUID generator in the properties file.
Okay, sure. But can I see some examples? Just generate a bunch (using the same logic in this plugin) and paste here :)
46b57cf0-20d9-11e6-ae13-6a138d208807
46bd1e10-20d9-11e6-ae13-6a138d208807
46bd4520-20d9-11e6-ae13-6a138d208807
46bd4521-20d9-11e6-ae13-6a138d208807
46bd6c30-20d9-11e6-ae13-6a138d208807
46bd6c31-20d9-11e6-ae13-6a138d208807
46bdba50-20d9-11e6-ae13-6a138d208807
46bdba51-20d9-11e6-ae13-6a138d208807
46bde160-20d9-11e6-ae13-6a138d208807
46bde161-20d9-11e6-ae13-6a138d208807
Haha great thanks. I see that most parts remain constant. It's not fully randomized in the whole string?
No, version 1 uuids are not randomized
it uses the datetime and mac address as variants. I think only version4 uuids are randomized.
Based on the replies, the official answer seems to be that it's UUID v1:
As per https://github.com/stephenc/eaio-uuid/blob/master/src/main/java/com/eaio/uuid/UUIDGen.java (the plugin mentioned):
* Starting with version 2, this implementation tries to obtain the MAC address
* of the network card.
Note: MAC address is only used for v1 UUIDs
Can you include the format definition of the UUID, as well as some examples? Is it a random string of characters, or a simple increment counter (1, 2, 3...)?
Also, is the format controllable?