srand(seed) produces different values on different servers
<p>The function my site uses for encoding/decoding cookie data utilizes rand(). It's not an ideal method at all, but it's the default cipher function in CakePHP 1.2, so I'm stuck using it for now, unless I want to invalidate all my user's cookies (and I really don't right now).</p>

<p>The problem is that I'm moving the site to a different server, and the new server is unable to decode cookies set by the old server because rand() produces different values even though both servers use srand(seed) with the same seed. I imagine the problem is that the two servers are using different internal php functions for generating the random numbers, as mentioned in this cakephp bug regarding the cipher function: <a href="http://cakephp.lighthouseapp.com/projects/42648/tickets/1524-securitycipher-is-platform-dependent" rel="nofollow">http://cakephp.lighthouseapp.com/projects/42648/tickets/1524-securitycipher-is-platform-dependent</a></p>

<p>I'm wondering how I can alter the cipher function on the new server to be able to decode cookies correctly that were set by the older server. Any way to force php to use the same internal random function or something?</p>
