Change roomID format

This commit is contained in:
giongto35 2019-04-23 00:20:11 +08:00
parent d9561a81a0
commit 221188b44b

View file

@ -9,6 +9,7 @@ import (
"math/rand"
"net/http"
_ "net/http/pprof"
"strconv"
"strings"
"sync"
"time"
@ -319,8 +320,8 @@ func ws(w http.ResponseWriter, r *http.Request) {
// generateRoomID generate a unique room ID containing 16 digits
func generateRoomID() string {
//roomID := strconv.FormatInt(rand.Int63(), 16)
roomID := uuid.Must(uuid.NewV4()).String()
roomID := strconv.FormatInt(rand.Int63(), 16)
//roomID := uuid.Must(uuid.NewV4()).String()
return roomID
}