From 746b978e52692d14eff9f5bec8ee51f004a8e7fc Mon Sep 17 00:00:00 2001 From: claudemiro Date: Mon, 26 Dec 2016 22:06:26 -0200 Subject: [PATCH] This change allow 32bit compilation --- utils/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/utils.go b/utils/utils.go index 482db1f..f2927e8 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -28,7 +28,7 @@ func HashMAC(message, key []byte) string { // GenerateSessionID Generate a new random Hash func GenerateSessionID() string { - return fmt.Sprintf("%d.%d", rand.Intn(math.MaxInt64), rand.Intn(math.MaxInt64)) + return fmt.Sprintf("%d.%d", rand.Intn(math.MaxInt32), rand.Intn(math.MaxInt32)) } // IsChannelNameValid Verify if the channel name is valid