From f81a365e0ccd0e9cdf2058f4d617a44c37e6f272 Mon Sep 17 00:00:00 2001 From: claudemiro Date: Mon, 18 Jan 2016 00:40:06 -0200 Subject: [PATCH] Changed the max number to the max in64 value --- utils/utils.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/utils.go b/utils/utils.go index 4dffd74..b70d38f 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -9,6 +9,7 @@ import ( "crypto/sha256" "encoding/hex" "fmt" + "math" "math/rand" "regexp" ) @@ -24,7 +25,7 @@ func HashMAC(message, key []byte) string { // GenerateSessionID Generate a new random Hash func GenerateSessionID() string { - MAX := 999999999 + MAX := math.MaxInt64 return fmt.Sprintf("%d.%d", rand.Intn(MAX), rand.Intn(MAX)) }