Length of bytes that are read from the crypto/rand
Now the value is 25
This commit is contained in:
+1
-1
@@ -239,7 +239,7 @@ func Websocket(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
// Generate a new random sessionID
|
||||
func randomSessionID() string {
|
||||
b := make([]byte, 20)
|
||||
b := make([]byte, 25)
|
||||
|
||||
if _, err := rand.Read(b); err != nil {
|
||||
panic("websockets: Could not generate a random session ID")
|
||||
|
||||
Reference in New Issue
Block a user