diff --git a/src/HttpServer/logic/function.go b/src/HttpServer/logic/function.go index 9a99278..ddeae08 100644 --- a/src/HttpServer/logic/function.go +++ b/src/HttpServer/logic/function.go @@ -1306,7 +1306,7 @@ func PrivateChat(message string, uuid int, taruid int) (int, string) { } func GetRandChatMessage() string { - index := rand.Int() % len(RandChatList) + index := rand.Intn(len(RandChatList) - 1) return RandChatList[index] } -- libgit2 0.21.0