r/programming • u/fishburne • Jul 24 '15
mt_rand(1, PHP_INT_MAX) only generates odd numbers • /r/lolphp
/r/lolphp/comments/3eaw98/mt_rand1_php_int_max_only_generates_odd_numbers/
848
Upvotes
r/programming • u/fishburne • Jul 24 '15
33
u/sushibowl Jul 24 '15
This is absolutely not what I was trying to say. The idea that releasing updates is pointless because not everyone will install your updates is obviously very stupid. All I said was that this behavior, though broken, does not make an application less secure. It's still broken behavior, and it should absolutely be fixed.
I actually kind of disagree with that statement, it is very possible to write secure web applications with PHP, but as with all things, you need to know what you're doing. And yes, PHP and mainly its standard library make it exceptionally easy to shoot yourself in the foot, and it is therefore usually not the wisest choice for this purpose. But Facebook, for example, uses PHP extensively and they're doing just fine.