Skip to content
This repository was archived by the owner on May 11, 2021. It is now read-only.
This repository was archived by the owner on May 11, 2021. It is now read-only.

UUID v5 not universal? #1

@elmimmo

Description

@elmimmo

Using class.uuid.php to generate UUID v5 I do not get the same result as using OSSP UUID, with same namespace and name.

Using OSSP UUID like this:

uuid -v5 ns:DNS www.widgets.com

or this:

uuid -v5 6ba7b810-9dad-11d1-80b4-00c04fd430c8 www.widgets.com

gives me 21f7f8de-8051-5b89-8680-0195ef798b6a.

class.uuid.php gives me 13726f09-44a9-5eeb-8910-3525a23fb23b instead.

Am I not supposed to get the same UUID no matter the implementation, given the same namespace and name?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions