$rand_num = hexdec(bin2hex(openssl_random_pseudo_bytes(20, $strong))); $rand_num = $rand_num; var_dump($rand_num);
wtf I’ve had in mind while writing it..
.. don’t you hate it when you’ve had a briliant thing in mind, you get up for the hourly coffee and when you’ll be back… ohhh… I’ve remembered…. nevermind.. :)
..its related to something I’m working on for Google Auth.