Class UUIDGenerator
java.lang.Object
org.apache.catalina.tribes.util.UUIDGenerator
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
protected static final Random
protected static final SecureRandom
protected static final StringManager
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Same as java.util.Random.nextBytes except this one we don't have to allocate a new byte arraystatic byte[]
randomUUID
(boolean secure) static byte[]
randomUUID
(boolean secure, byte[] into, int offset)
-
Field Details
-
sm
-
UUID_LENGTH
public static final int UUID_LENGTH- See Also:
-
UUID_VERSION
public static final int UUID_VERSION- See Also:
-
BYTES_PER_INT
public static final int BYTES_PER_INT- See Also:
-
BITS_PER_BYTE
public static final int BITS_PER_BYTE- See Also:
-
secrand
-
rand
-
-
Constructor Details
-
UUIDGenerator
public UUIDGenerator()
-
-
Method Details
-
randomUUID
public static byte[] randomUUID(boolean secure) -
randomUUID
public static byte[] randomUUID(boolean secure, byte[] into, int offset) -
nextBytes
Same as java.util.Random.nextBytes except this one we don't have to allocate a new byte array- Parameters:
into
- byte[]offset
- intlength
- intr
- Random
-