The random number seed generator was creating float values that, when fed to mt_srand...
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 20 Nov 2008 22:32:32 +0000 (22:32 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 20 Nov 2008 22:32:32 +0000 (22:32 +0000)
commit8313aa5ef51cfe14127bcf38a01b71a00b2abaf2
treeb1bad1dc100e51a3ac9dc37adfe75a06fdae9ae2
parent67c826cef3c0dcbf930606b13b6eadbedabba82c
The random number seed generator was creating float values that, when fed to mt_srand(), which expects an integer, were seen as zero on some systems because it was such a large number.  This fix takes a sub-string of the seed's MD5 before converting it to an integer in order to fix that problem.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13322 7612ce4b-ef26-0410-bec9-ea0150e637f0
include/init.php