byte [ ] function ( ) { byte [ ] loc0 = new byte [ 16 ] ; random . nextBytes ( loc0 ) ; loc0 [ 6 ] &= 0x0F ; loc0 [ 6 ] |= ( 4 << 4 ) ; loc0 [ 8 ] &= 0x3F ; loc0 [ 8 ] |= 0x80 ; return loc0 ; }
generate byte array using random generator . code adapted from org.apache.commons.id.uuid.versionfourgenerator.java concode_field_sep Random random concode_elem_sep char[] DIGITS concode_field_sep String getUUIDString concode_elem_sep char[] encodeHex concode_elem_sep String getUUID4AsString