Changed the max number to the max in64 value

This commit is contained in:
claudemiro
2016-01-18 00:40:06 -02:00
parent 1de947cedc
commit f81a365e0c
+2 -1
View File
@@ -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))
}