does anyone know a simple way to generate a random 64 bit number using PHP? It would be best if it doesn’t rely on any extensions if possible.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Generate a bunch of smaller (16 bits) random numbers using mt_rand and combine them. This approach is also used in this UUID example on php.net.