- if (nodeId != null) {
- // copy array in case it should change in the future
- if (offset + 6 > nodeId.length)
- throw new IllegalArgumentException(
- "Node id array is too small: " + nodeId.length + ", offset=" + offset);
- System.arraycopy(nodeId, offset, this.nodeId, 0, 6);
- } else {
- this.secureRandom.nextBytes(this.nodeId);
- assert TimeUuidState.isNoMacAddressNodeId(this.nodeId);
- }