Skip to content
This repository was archived by the owner on Apr 22, 2022. It is now read-only.

Commit 746b978

Browse files
committed
This change allow 32bit compilation
1 parent 065d6ab commit 746b978

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func HashMAC(message, key []byte) string {
2828

2929
// GenerateSessionID Generate a new random Hash
3030
func GenerateSessionID() string {
31-
return fmt.Sprintf("%d.%d", rand.Intn(math.MaxInt64), rand.Intn(math.MaxInt64))
31+
return fmt.Sprintf("%d.%d", rand.Intn(math.MaxInt32), rand.Intn(math.MaxInt32))
3232
}
3333

3434
// IsChannelNameValid Verify if the channel name is valid

0 commit comments

Comments
 (0)