Class UUIDGenerator

  • public class UUIDGenerator
    extends Object
    Smple generation of a UUID.
    • Constructor Detail

      • UUIDGenerator

        public UUIDGenerator()
    • Method Detail

      • 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
        into - byte[]
        offset - int
        length - int
        r - Random