corda / net.corda.core.contracts / UniqueIdentifier / id

id

val id: UUID

Should never be set by user code and left as default initialised. So that the first time a state is issued this should be given a new UUID. Subsequent copies and evolutions of a state should just copy the externalId and id fields unmodified.