Here you can find the source of generateGUID()
public static String generateGUID()
//package com.java2s; //License from project: Open Source License public class Main { /**/*from ww w . j a va2 s .c o m*/ * Generates a GUID * @return a unique identifier which will statistically speaking be Globally Unique */ public static String generateGUID() { return java.util.UUID.randomUUID().toString(); } }