Generate a new UUID. Uses both num and r; easier to synchronize the method than the two access/modifies. return "o-" + ++num + "-" + r.nextLong();
return "o-" + ++num + "-" + r.nextLong();
System.out.println(getUUID());