Giter Site home page Giter Site logo

Comments (8)

Lastique avatar Lastique commented on September 12, 2024
  1. The UUID generation from name is described in RFC4122, which specifies MD5 or SHA1. I'm not sure the current implementation fully follows the spec, but I think it should be used as the reference and the default.
  2. If you still want to make the hash algorithm configurable, I would prefer an implementation without virtual functions. They are not required if you follow the templated approach - just define the concept of the hashing function and use the template argument accordingly.
  3. In order to not break backward compatibility I would suggest implementing the configurable version of name_generator under a different name, like basic_name_generator or something. name_generator can be made a typedef to this new implementation.

from uuid.

jeking3 avatar jeking3 commented on September 12, 2024

@Lastique Thank you for your comments.

On item 1, hashes, given SHA1 has recently been compromised, it would make sense to start planning for a replacement. This actually got me thinking as to whether a new IETF document with all the published errata and the addition of another hashing algorithm (or two?) would be warranted.

On item 2, I think it would be an interesting exercise to do what you suggest, and add MD5 as an option. Obviously there will be little to no use of it, but it will complete the implementation with respect to the RFC. I like your strategy in item 3 as well.

from uuid.

mclow avatar mclow commented on September 12, 2024

I can ask an IETF co-worker of mine about future work on RFC4122 (or a followup RFC).

As a design comment, I agree with @Lastique that having a "hash function" as a template argument rather than using inheritance is a better way to go. [ See the unordered containers for examples. ]

from uuid.

jeking3 avatar jeking3 commented on September 12, 2024

@mclow much appreciated - thank you for taking the time do check on that.

from uuid.

jeking3 avatar jeking3 commented on September 12, 2024

@mclow were you able to make any progress on a RFC4122 follow-up discussion?

from uuid.

mclow avatar mclow commented on September 12, 2024

I believe that the IETF people are discussing it - but no resolution AFAIK yet.

from uuid.

jeking3 avatar jeking3 commented on September 12, 2024

@mclow I reached out by email to the original authors in RFC 4122 however paulle and rsalz emails bounced.

from uuid.

jeking3 avatar jeking3 commented on September 12, 2024

@mclow my emails to folks on the RFC 4122 bounced. This issue has stalled. Do you have any more contacts or should I think about starting an update of the RFC?

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