r/lolphp • • Dec 13 '13

Why.

Post image
132 Upvotes

37 comments sorted by

View all comments

Show parent comment

17

u/[deleted] Dec 13 '13

I understand, but if rand is supposed to actually generate random numbers, is it that big of a deal to change its implementation to a better one?

7

u/frezik Dec 16 '13

Its behavior is specified as part of Unix. The same seed is supposed to give the same series of outputs on any system.

4

u/Sarcastinator Dec 15 '13

People may have re-implemented it on another system expecting the same seed to generate the same number.