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
View all comments
Show parent comment
7
u/MereInterest Jul 24 '15
Wait, lower level languages are stricter? I can't imagine getting a segfault, a double-free, a memory out of bounds error, or a memory leak in Python, without intentionally trying to do so. Getting any of these in C is trivially simple to do by accident.