使用UUID得到一個不重複的16位帳號的算法

public static String getAccountIdByUUId() { int machineId = 1;//最大支持1-9個集羣機器部署 int hashCodeV = UUID.randomUUID().toString().hashCode(); if(hashCodeV < 0) {//有多是負數 hashCodeV = - hashCodeV; } retu
相關文章
相關標籤/搜索