Tue Apr 23, 2013 9:15 pm
import java.util.UUID;
public class UIDGenerator {
public static String generateUID() {
return UUID.randomUUID().toString();
}
public static String generateC16UID() {
String C36UUID = UUID.randomUUID().toString();
String C16 = C36UUID.replaceAll("-", "");
return C16.substring(0, 16);
}
}
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.