[eluser]WanWizard[/eluser]
[quote author="slowgary" date="1286917314"]
Code:
'session_id' => md5(uniqid($sessid, TRUE))
By hashing a uniqid(), isn't it actually INCREASING the likelihood of a collision?[/quote]
Uniqueid() basically returns a hex representation based on the current time up to the microsecond. The chances of an MD5 collision on a 184bit value are quite small.
I assume that two unqiueid's generated at the same microsecond would be identical, given the algorithm. Which would also generate the same MD5. So I think the answer should be Yes. Question is, how likely is this, and would the randomizer produce a better result?