| java.lang.Object org.apache.catalina.tribes.util.UUIDGenerator
UUIDGenerator | public class UUIDGenerator (Code) | | simple generation of a UUID
author: Filip Hanik version: 1.0 |
Method Summary | |
public static void | nextBytes(byte[] into, int offset, int length, Random r) | public static byte[] | randomUUID(boolean secure) | public static byte[] | randomUUID(boolean secure, byte[] into, int offset) |
BITS_PER_BYTE | final public static int BITS_PER_BYTE(Code) | | |
BYTES_PER_INT | final public static int BYTES_PER_INT(Code) | | |
UUID_LENGTH | final public static int UUID_LENGTH(Code) | | |
UUID_VERSION | final public static int UUID_VERSION(Code) | | |
nextBytes | public static void nextBytes(byte[] into, int offset, int length, Random r)(Code) | | Same as java.util.Random.nextBytes except this one we dont have to allocate a new byte array
Parameters: into - byte[] Parameters: offset - int Parameters: length - int Parameters: r - Random |
randomUUID | public static byte[] randomUUID(boolean secure)(Code) | | |
randomUUID | public static byte[] randomUUID(boolean secure, byte[] into, int offset)(Code) | | |
|
|