Skip to content

generateUuid function in Data.php file not secure and maybe create duplicate uuid #1546

@mazaheriaan

Description

@mazaheriaan

In the "generateUuid()" function, that is in the "Data.php" file, mt_rand function does not good for generate uuid and maybe create duplicate uuid.
It's better to use random_int(),random_bytes(), or openssl_random_pseudo_bytes() instead.

https://www.php.net/manual/en/function.mt-rand.php

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