I was trying to set a UniqueIdentifier based on Long. The objective was to give a certain custom Object a unique identifier in order to allow me to store them in a hashmap. I saw someone trying to use the most significant bits. So I realized that the addition of least and most significant bits will make it work. Here it is for anyone looking for a long UUID.
JamesCherrill 4,733
Most Valuable Poster Team Colleague Featured Poster
mvmalderen 2,072
Postaholic
~s.o.s~ 2,560
Failure as a human Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.