GithubHelp home page GithubHelp logo

Comments (8)

Joshfindit avatar Joshfindit commented on September 26, 2024

Are you referring to:

  • the UUID spec
  • The version that neo4j-uuid generates when generating the UUID
  • Something else?

from neo4j-uuid.

ADTC avatar ADTC commented on September 26, 2024

"The version that neo4j-uuid generates when generating the UUID"
That

from neo4j-uuid.

luanne avatar luanne commented on September 26, 2024

@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.

from neo4j-uuid.

ADTC avatar ADTC commented on September 26, 2024

Okay, sure. But can I see some examples? Just generate a bunch (using the same logic in this plugin) and paste here :)

from neo4j-uuid.

ikwattro avatar ikwattro commented on September 26, 2024
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

from neo4j-uuid.

ADTC avatar ADTC commented on September 26, 2024

Haha great thanks. I see that most parts remain constant. It's not fully randomized in the whole string?

from neo4j-uuid.

ikwattro avatar ikwattro commented on September 26, 2024

No, version 1 uuids are not randomized it uses the datetime and mac address as variants. I think only version4 uuids are randomized.

from neo4j-uuid.

Joshfindit avatar Joshfindit commented on September 26, 2024

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

from neo4j-uuid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.