Class UUIDGenerator

java.lang.Object
org.apache.catalina.tribes.util.UUIDGenerator

public class UUIDGenerator extends Object
Smple generation of a UUID.
  • Field Details

  • 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

      public static void nextBytes(byte[] into, int offset, int length, Random r)
      Same as java.util.Random.nextBytes except this one we don't have to allocate a new byte array
      Parameters:
      into - byte[]
      offset - int
      length - int
      r - Random