I had a look at javadoc and also had a look at the wikipedia. What I want to know is that would it be good to write a UUID generator algorythm or to just use a Random UUID generator? Any suggestions guys?
Well, the links you gave show a number of ways of generating UUIDs in Java. Do they meet your needs ? If so, problem solved. If not, then you need to tell us why they don't meet your needs and then maybe we can suggest something else.
while generating Guid follow some common process. 1.) it should be a Big String at least 32 bytes 2.) while generating Guid you should not depend on just one resource. you should generate Guid by combing string from atleast 3-4 resources.
For ex. first 12 characters from one resource then some 8 from another one and so on. otherwise there are big changes of mixing up.
for ex. first 11 character you can generate from "System" class using 11 characters from out put of System.getmillSeconds() then rest 8 you can generate using random number generator and so on.
and one more thing if it a combination of Integer and character it is considered as good one.