Generate UID





6
Date Submitted Tue. Apr. 25th, 2006 1:03 PM
Revision 1 of 1
Coder mattrmiller
Tags Generate | Java | UID
Comments 3 comments
Another way to generate a unique ID.


public static String getUID()
{
        return String.valueOf(System.currentTimeMillis());
}

 

Matthew R. Miller

www.bluecreststudios.com
=================
Matthew R. Miller

http://bluecreststudios.com
http://www.codeandcoffee.com

Comments

Comments Dangerous code
Sat. Oct. 28th, 2006 1:57 PM    Scripter SCoon
Comments Example
Fri. Jul. 14th, 2006 6:18 AM    Beginner SurfMan
Comments Not quite a UID... (misses the "U" bit) ;-)
Thu. Apr. 27th, 2006 7:20 AM    Scripter TimYates

Voting