Skip to content

uuid_create(UUID_TYPE_TIME) seems broken on 32-bit #206

Closed
@guilliamxavier

Description

@guilliamxavier

Run var_dump(uuid_create(UUID_TYPE_TIME)); several times with a few seconds/minutes delay between each call, here are some sample results:

  • on a 64-bit system:

    string(36) "3d18e40c-129d-11ea-94e6-61a012af7e36"
    string(36) "7dbf2f3e-129d-11ea-afb1-efd2f815ab0c"
    string(36) "95dd40d8-129d-11ea-be2a-931c452fa10d"
    string(36) "d58d1e1a-129d-11ea-93b0-9774d3d2232c"
    string(36) "007bc6c6-129e-11ea-bb10-e1b619b491ac"
    
  • on a 32-bit system:

    string(36) "3d710800-0000-1000-bc7d-81c9756e8182"
    string(36) "7de39b90-0000-1000-a067-8b759a2618f5"
    string(40) "95fa8cb0-ffff-ffffffff-91cb-b372558c0d82"
    string(40) "d5a82800-ffff-ffffffff-aac8-611f2a0e136d"
    string(36) "00c2eb80-0000-1000-9410-6b0dafe79f58"
    

    => the middle parts exhibit a problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions