Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Why even accept ranges that span more than 2^32? That seems like an easy solution to a broken function.

It may never have been designed to. If it was written before 64-bit machines were commonplace, mt_getrandmax() would always be the same as PHP_INT_MAX.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: