Fix for issue #456 related to payload using 2 differents RANDOM while only one should be used
This commit is contained in:
parent
00106b367c
commit
92334b919e
@ -166,7 +166,7 @@ public class WebSocket08FrameEncoder extends MessageToByteEncoder<WebSocketFrame
|
||||
if (maskPayload) {
|
||||
int random = (int) (Math.random() * Integer.MAX_VALUE);
|
||||
mask = ByteBuffer.allocate(4).putInt(random).array();
|
||||
out.writeInt((int) (Math.random() * Integer.MAX_VALUE));
|
||||
out.writeInt(random);
|
||||
|
||||
int counter = 0;
|
||||
for (int i = data.readerIndex(); i < data.writerIndex(); i ++) {
|
||||
|
Loading…
Reference in New Issue
Block a user