From df8910b13d216c6fd7b580ba933ddc237fef6026 Mon Sep 17 00:00:00 2001 From: Tony Date: Sun, 6 Jan 2019 22:35:20 +0800 Subject: [PATCH] fix releaser build --- internal/comet/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/comet/server.go b/internal/comet/server.go index ed1eb5a9..a13e1f92 100644 --- a/internal/comet/server.go +++ b/internal/comet/server.go @@ -96,7 +96,7 @@ func (s *Server) Bucket(subKey string) *Bucket { // RandServerHearbeat rand server heartbeat. func (s *Server) RandServerHearbeat() time.Duration { - return (minServerHeartbeat + time.Duration(rand.Intn(int(maxServerHeartbeat-minServerHeartbeat)))) + return (minServerHeartbeat + time.Duration(rand.Int63n(int64(maxServerHeartbeat-minServerHeartbeat)))) } // Close close the server.