We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4da4e4 commit 60233d3Copy full SHA for 60233d3
src/net/tootallnate/websocket/WebSocketClient.java
@@ -255,7 +255,8 @@ private String generateKey() {
255
}
256
long product = number * spaces;
257
String key = Long.toString(product);
258
- int numChars = r.nextInt(12);
+ //always insert atleast one random character
259
+ int numChars = r.nextInt(12)+1;
260
for (int i=0; i < numChars; i++){
261
int position = r.nextInt(key.length());
262
position = Math.abs(position);
0 commit comments