security - Secure random number generation in PHP - Stack Overflow
Here is some PHP code to obtain a secure random 128-bit string, from this comment at php.net by Mark Seecof: "If you need some pseudorandom bits for security or cryptographic purposes (e.g.g., random IV for block cipher, random salt for password hash) mt ...