Package org.hibernate.testing.util.uuid
Class SafeRandomUUIDGenerator
java.lang.Object
org.hibernate.testing.util.uuid.SafeRandomUUIDGenerator
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SafeRandomUUIDGenerator
public SafeRandomUUIDGenerator()
-
-
Method Details
-
safeRandomUUID
- Returns:
- A random UUID that is guaranteed not to end with a trailing 0 byte
-
safeRandomUUIDAsString
- Returns:
- The String representation of a random UUID that is guaranteed not to end with a trailing 0 byte
-
isSafeUUID
- Parameters:
uuid
- The UUID to be tested- Returns:
- true if the UUID doesn't end with a trailing 0 byte, false otherwise
-