Summary: I\'m developing a persistent Java web application, and I need to make sure that all resources I persist have globally unique identifiers to prevent
why not do like this
String id = Long.toString(System.currentTimeMillis()) + (new Random()).nextInt(1000) + (new Random()).nextInt(1000);