瀏覽代碼

fixed name issue

worker-9 4 年之前
父節點
當前提交
4f9ce3635a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/names.go

+ 1 - 1
models/names.go

@@ -183,7 +183,7 @@ var SMALL_NAMES = []string{
 
 
 func GenerateNodeName() string {
 func GenerateNodeName() string {
 	rand.Seed(time.Now().UnixNano())
 	rand.Seed(time.Now().UnixNano())
-	return NAMES[rand.Intn(len(SMALL_NAMES))] + "-" + NAMES[seededRand.Intn(len(NAMES))]
+	return SMALL_NAMES[rand.Intn(len(SMALL_NAMES))] + "-" + NAMES[seededRand.Intn(len(NAMES))]
 }
 }
 
 
 func RetrieveLogo() string {
 func RetrieveLogo() string {