import java.util.UUID;
public class GeneralKey {
public static String getGeneralKey(){
UUID uuid = UUID.randomUUID();
return uuid.toString().replaceAll("-", "");
}
public static void main(String[] args) {
for(int i=0; i<20; i++){
System.out.println(GeneralKey.getGeneralKey());
System.out.println(GeneralKey.getGeneralKey().length());
System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>");
}
}
}
时间: 2024-10-09 20:13:32