/** * Create a new unique GUID */ public GUID() { short c; byte[] b; synchronized (GUID.class) { c = ++cnt; b = baseId; if (cnt == Short.MAX_VALUE) { cnt = Short.MIN_VALUE; baseId = getSystemUniqId(); } } id = new byte[] { ipadd[0], ipadd[1], ipadd[2], ipadd[3], b[7], b[6], b[5], b[4], b[3], b[2], b[1], b[0], (byte) ((c >>> 8) & 0xff), (byte) (c & 0xff) }; }