Commit f4bd0da018a002c2b39048d181857270d4681067

Authored by 陆恒
1 parent 24552d54
Exists in master

提交

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/HttpServer/logic/function.go
@@ -1306,7 +1306,7 @@ func PrivateChat(message string, uuid int, taruid int) (int, string) { @@ -1306,7 +1306,7 @@ func PrivateChat(message string, uuid int, taruid int) (int, string) {
1306 } 1306 }
1307 1307
1308 func GetRandChatMessage() string { 1308 func GetRandChatMessage() string {
1309 - index := rand.Int() % len(RandChatList) 1309 + index := rand.Intn(len(RandChatList) - 1)
1310 return RandChatList[index] 1310 return RandChatList[index]
1311 } 1311 }
1312 1312