From bda3d7d128858cbd3902a0f46e1ff31629e84895 Mon Sep 17 00:00:00 2001 From: Gary Burd Date: Wed, 23 Jul 2014 20:32:33 -0700 Subject: [PATCH 1/2] Fix mask key. --- conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conn.go b/conn.go index af41beb..2701142 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. From acc8d8706f4728d63330a41054a64cee261aef10 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Bohin Date: Mon, 4 Aug 2014 23:58:41 +0200 Subject: [PATCH 2/2] Changing a swap in README.md for autobahn Autobahn test suite configuration fuzzingclient.json refers to 'clients' folder, but README.md refers to server. I changed README.md to clients, although I can't figure a good way to choose between changing README.md for 'clients' or fuzzingclient.json for servers. both seems legit to me, depending on what side you see things. Feel free to dismiss/decline my PR if you think the former makes more sense in this context. --- examples/autobahn/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.