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 e1025a2 commit 1f30103Copy full SHA for 1f30103
core/src/main/java/org/apache/struts2/util/TokenHelper.java
@@ -27,6 +27,7 @@
27
import com.opensymphony.xwork2.util.logging.LoggerFactory;
28
29
import java.math.BigInteger;
30
+import java.security.SecureRandom;
31
import java.util.Map;
32
import java.util.Random;
33
@@ -51,7 +52,7 @@ public class TokenHelper {
51
52
*/
53
public static final String TOKEN_NAME_FIELD = "struts.token.name";
54
private static final Logger LOG = LoggerFactory.getLogger(TokenHelper.class);
- private static final Random RANDOM = new Random();
55
+ private static final Random RANDOM = new SecureRandom();
56
57
58
/**
0 commit comments