org.apache.catalina.tribes.util
public class UUIDGenerator extends Object
Version: 1.0
| Field Summary | |
|---|---|
| static int | BITS_PER_BYTE |
| static int | BYTES_PER_INT |
| protected static Random | rand |
| protected static SecureRandom | secrand |
| static int | UUID_LENGTH |
| static int | UUID_VERSION |
| Method Summary | |
|---|---|
| static void | nextBytes(byte[] into, int offset, int length, Random r)
Same as java.util.Random.nextBytes except this one we dont have to allocate a new byte array |
| static byte[] | randomUUID(boolean secure) |
| static byte[] | randomUUID(boolean secure, byte[] into, int offset) |
Parameters: into byte[] offset int length int r Random