unique id

From: Date: Sat, 26 Jul 2003 07:58:41 +0000
Subject: unique id
Groups: php.general 
Request: Send a blank email to php-general+get-156984@lists.php.net to get a copy of this message
Hi there! What's the best way to create uids (unique ids) even when runnig at exactly same time (microseconds)? is this enough ??? $r = mt_rand(); $uid = uniqid(getmypid() . $r); thanks Jan

« previous php.general (#156984) next »