com.opensymphony.util
Class GUID
java.lang.Object
com.opensymphony.util.GUID
public final class GUID
- extends Object
Convenience object for generating GUIDs.
- Version:
- $Revision: 1.1.1.1 $
- Author:
- Victor Salaman
Constructor Summary |
GUID()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GUID
public GUID()
generateFormattedGUID
public static String generateFormattedGUID()
generateGUID
public static String generateGUID()
- Generates a unique ID based on the Yarrow secure random
number generator. Yarrow preserves its seed in
$java.io.tmpdir/seedfile
,
so the chances of getting a collision are amazingly, amazingly
small. Even on separate machines, this shouldn't yield matches.