Please don't use mt_rand for generating UUIDs. As the PHP documentation notes this function does not generate cryptographically secure values and you will end up with a lot of collisions.
Better use random_bytes which is crypthographically secure. Example:
Besides that as noted in the different comments use some library which is able to generate the uuids in binary form and store them also as binary in the database.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Please don't use mt_rand for generating UUIDs. As the PHP documentation notes this function does not generate cryptographically secure values and you will end up with a lot of collisions.
Better use random_bytes which is crypthographically secure. Example:
Kindly taken from paragonie.com/b/JvICXzh_jhLyt4y3
Besides that as noted in the different comments use some library which is able to generate the uuids in binary form and store them also as binary in the database.