[Solved] How to make an unique id for an object that is not random
What about adding a globally unique identifier (GUID)? A GUID is a 128-bit integer (16 bytes) that can be used across all computers and networks wherever a unique identifier is required. Such an identifier has a very low probability of being duplicated. In Java, it is called a UUID. For example: UUID uuid = java.util.UUID.randomUUID(); … Read more