News for hackers. Stuff that matters.
Re:A call to PHP's mt_rand generates only odd numbers by pogden on Friday July 24, 2015 @12:21PM (#9943052)
The crazy part is that, instead of throwing an error when given input that doesn't make sense, it just silently produces garbage output.
Re:A call to PHP's mt_rand generates only odd numbers by alkonaut on Friday July 24, 2015 @01:36PM (#9943711)
This. Documenting odd behavior like this isn't an excuse for having odd behavior. It should just be changed to fail on bad input. It's not even a breaking change (apart from code already using it with bad input).