Length of bytes that are read from the crypto/rand

Now the value is 25
This commit is contained in:
claudemiro
2015-01-13 00:08:37 -03:00
parent ef1070887b
commit 3a9b786a46
+1 -1
View File
@@ -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")