samedi 9 janvier 2021

Will time() ever return the same output?

I am generating tokens for users in PHP when they register. I am wondering if two users could ever get the same token... as this will break the system. Please let me know if this is suffiecient.

$token = md5(rand().time());



Aucun commentaire:

Enregistrer un commentaire