News for hackers. Stuff that matters.
Re:A call to PHP's mt_rand generates only odd numbers by Spivak on Friday July 24, 2015 @02:32PM (#9944178)
If we were talking about C this would be called undefined behavior. If you don't satisfy the preconditions before calling a function then the not only is the output invalid but the entire program which uses it is invalid too.

I don't think a language like PHP, or indeed anything written in it, should have undefined behavior but I'm not the author of the library.

There are no comments on this comment yet.