From http://php.net/manual/en/function.mt-rand.php:
Caution This function does not generate cryptographically secure values, and should not be used for cryptographic purposes.
Can someone please explain what this means in the context of a website? Does it mean it should not be used to generate a security token?
On a 32-bit system PHP_INT_SIZE
is just over 2 billion. If I generate a number mt_rand(0, PHP_INT_SIZE)
and add on a long random string of say 100 chars and use it as a security token, is it saying that it is insecure?