Skip to content

Commit

Permalink
Merge pull request #1133 from marci4/Issue1132
Browse files Browse the repository at this point in the history
Use SecureRandom instead of Random
  • Loading branch information
marci4 authored Mar 25, 2021
2 parents 32d5656 + feec867 commit d0f5731
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/java_websocket/drafts/Draft_6455.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
import java.nio.ByteBuffer;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.Locale;
import java.util.Random;
import java.util.TimeZone;
import org.java_websocket.WebSocketImpl;
import org.java_websocket.enums.CloseHandshakeType;
Expand Down Expand Up @@ -150,7 +150,7 @@ public class Draft_6455 extends Draft {
/**
* Attribute for the reusable random instance
*/
private final Random reuseableRandom = new Random();
private final SecureRandom reuseableRandom = new SecureRandom();

/**
* Attribute for the maximum allowed size of a frame
Expand Down

0 comments on commit d0f5731

Please sign in to comment.