Package com.viaversion.viaversion.util
Class UUIDUtil
java.lang.Object
com.viaversion.viaversion.util.UUIDUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UUIDfromIntArray(int[] parts) static @Nullable UUIDstatic UUIDReturns a random UUID, similar toUUID.randomUUID(), but without usingSecureRandomand its synchronization.static int[]toIntArray(long msb, long lsb) static int[]toIntArray(UUID uuid)
-
Constructor Details
-
UUIDUtil
public UUIDUtil()
-
-
Method Details
-
fromIntArray
-
toIntArray
-
toIntArray
public static int[] toIntArray(long msb, long lsb) -
parseUUID
-
randomUUID
Returns a random UUID, similar toUUID.randomUUID(), but without usingSecureRandomand its synchronization.Should not be used where a UUID should be unpredictable.
- Returns:
- random UUID
-