title: Why does the C++ stdlib rand() function give different values for the same seed across platforms?
body: <p>I understand that the <code>rand()</code> function generates pseudo-random numbers based on the seed it is given, and that on a given platform it will always generate the same sequence of numbers from the same seed, what I want to know is why it gives a different sequence across platforms that use the same library? I.e. how is <code>rand()</code> implemented?</p>