| java.lang.Object dtw.webmail.util.UIDGenerator
UIDGenerator | public class UIDGenerator (Code) | | Utility class exposing a method that will return
a unique identifier.
author: Dieter Wimberger version: 0.9.7 07/02/2003 |
Method Summary | |
final public static synchronized String | getUID() Returns a UID (unique identifier) as String. | final public static void | main(String[] args) | final public static void | seedRandom() If the HotBits Server is available, Random
will be seeded with a real random long. |
RANDOM_PADDING | final public static int RANDOM_PADDING(Code) | | |
RANDOM_RESEED | final public static int RANDOM_RESEED(Code) | | |
RANDOM_SEED_LENGTH | final public static int RANDOM_SEED_LENGTH(Code) | | |
getUID | final public static synchronized String getUID()(Code) | | Returns a UID (unique identifier) as String.
The identifier represents the MD5 hashed combination
of a java.rmi.server.UID instance, a random padding of
RANDOM_PADDING length, it's identity hashcode and
System.currentTimeMillis().
the UID as String. |
seedRandom | final public static void seedRandom()(Code) | | If the HotBits Server is available, Random
will be seeded with a real random long.
HotBits is located
at Fermilab, Switzerland.
|
|
|