At 2:38 PM +0330 11/9/09, Ali Asghar Toraby Parizy wrote:
I need a hash function to build a Unique serial number ...
But use at your own risk.
If you want a unique number try using a time stamp (i.e., time() )
in concert with a database.
For example, grab a time, look for it in a database, if it's not
there then use it. If it is there then repeat until you have that
isn't. That way it's a unique number guaranteed.
Addition to that.
When you find an unique number, use it AND store that in the database.
http://sperling.com http://ancientstones.com http://earthstones.com
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php