com.opensymphony.util
Class GUID

java.lang.Object
  extended by 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()
           
 
Method Summary
static String generateFormattedGUID()
           
static String generateGUID()
          Generates a unique ID based on the Yarrow secure random number generator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUID

public GUID()
Method Detail

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.


OSCore Project Page