Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pogden
on July 24, 2015
|
parent
|
context
|
favorite
| on:
A call to PHP's mt_rand generates only odd numbers
The crazy part is that, instead of throwing an error when given input that doesn't make sense, it just silently produces garbage output.
alkonaut
on July 24, 2015
[–]
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).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: