Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Introduced protections against predictable RNG abuse
  • Loading branch information
pixeebot[bot] authored Jul 4, 2024
commit 1993b1751ef7aba76182ee6dd4f1f34c8d6e3205
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ private KeyPair generateKeyPair(int keySize) throws NoSuchAlgorithmException {
}

private long randomSerial() {
final Random rnd = new Random();
final Random rnd = new SecureRandom();
rnd.setSeed(System.currentTimeMillis());
// prevent browser certificate caches, cause of doubled serial numbers
// using 48bit random number
Expand Down