diff src/treecms/proto/test/UUIDTest.java @ 13:3bccd745f2e2

bug fix
author shoshi
date Sun, 29 Aug 2010 12:07:03 +0900
parents c8e31aaac297
children
line wrap: on
line diff
--- a/src/treecms/proto/test/UUIDTest.java	Sun Aug 29 00:11:08 2010 +0900
+++ b/src/treecms/proto/test/UUIDTest.java	Sun Aug 29 12:07:03 2010 +0900
@@ -27,11 +27,17 @@
 		}
 	}
 	
+	public static synchronized UUID getUUID()
+	{
+		return UUID.randomUUID();
+	}
+	
 	public void run()
 	{
 		for(int i = 0;i < 3;i ++){
 			try{
-				System.out.println(UUID.randomUUID().toString());
+				//System.out.println(UUID.randomUUID().toString());
+				System.out.println(UUIDTest.getUUID());
 			}catch(Exception _err){
 				_err.printStackTrace();
 			}