note 9510 deleted from function.md5 by didou

From: Date: Fri, 20 Jun 2003 09:19:48 +0000
Subject: note 9510 deleted from function.md5 by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-50707@lists.php.net to get a copy of this message
Note Submitter: lexzeus@mifinca.com ---- [Editor: Take a look at uniqid() since it does what you want. And since PHP 4.2 you don't have to use srand() any longer] U can generate unique string with this way : srand((double)microtime()*1000000); $unique_str = md5(rand(0,9999999)); print $unique_str; It is good for password, cookies or Session_ID (if u're using PHP3) ... LexZEUS

« previous php.notes (#50707) next »