> > I guess people continue to use rand() or mt_rand() if they skip the > documentation. > Even frameworks which are advertised with 100% php7 compatibility use > mt_rand(). >
There's nothing wrong with mt_rand() in non-security contexts, it's still there in PHP 7. If anyone is using mt_rand() in security related code in PHP 5, they're doing it wrong. It doesn't have anything to do with PHP 7 compatibility. Regards, Niklas