PHP md5() problem
Posted: Fri Oct 03, 2008 1:42 pm
Hi,
This is a weird issue. Every once in awhile, my code will return the exact same "$linkId" value for the following:
$linkId = substr(md5(uniqid(rand(), true) + $user_id), 0, 20) . '-' . substr(md5(uniqid(rand(), true) + $user_id), 13, 32);
It always returns: 9517fd0bf8faa655990a-655990a4dffe358e13e
I have no clue as to why this specific code would always return the same value, even for different users. This is a HUGE issue for me. Thanks for the help!
This is a weird issue. Every once in awhile, my code will return the exact same "$linkId" value for the following:
$linkId = substr(md5(uniqid(rand(), true) + $user_id), 0, 20) . '-' . substr(md5(uniqid(rand(), true) + $user_id), 13, 32);
It always returns: 9517fd0bf8faa655990a-655990a4dffe358e13e
I have no clue as to why this specific code would always return the same value, even for different users. This is a HUGE issue for me. Thanks for the help!