diff --git a/conn.go b/conn.go index eea4344..20598c8 100644 --- a/conn.go +++ b/conn.go @@ -120,7 +120,7 @@ func maskBytes(key [4]byte, pos int, b []byte) int { func newMaskKey() [4]byte { n := rand.Uint32() - return [4]byte{byte(n), byte(n >> 8), byte(n >> 16), byte(n >> 32)} + return [4]byte{byte(n), byte(n >> 8), byte(n >> 16), byte(n >> 24)} } // Conn represents a WebSocket connection. diff --git a/examples/autobahn/README.md b/examples/autobahn/README.md index 348a24a..075ac15 100644 --- a/examples/autobahn/README.md +++ b/examples/autobahn/README.md @@ -10,4 +10,4 @@ and start the client test driver wstest -m fuzzingclient -s fuzzingclient.json -When the client completes, it writes a report to reports/servers/index.html. +When the client completes, it writes a report to reports/clients/index.html.