Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mazaheriaan opened this issue Dec 17, 2019 · 0 comments

Comments

@mazaheriaan
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant