Skip to content

Conversation

@martin-g
Copy link
Member

  1. Lazy load DefaultSecureRandomSupplier in SecuritySettings.java
  2. Lazy load SecureRandom.getInstance("SHA1PRNG") in DefaultSecureRandomSupplier.java

1. Lazy load DefaultSecureRandomSupplier in SecuritySettings.java
2. Lazy load `SecureRandom.getInstance("SHA1PRNG")` in
DefaultSecureRandomSupplier.java
Copy link
Contributor

@papegaaij papegaaij left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this makes sense. We can't assume the default is always available, so we should init only when needed.

@martin-g martin-g merged commit 5710d7d into master Jan 27, 2026
3 checks passed
@martin-g martin-g deleted the WICKET-7174-lazy-load-SecureRandom branch January 27, 2026 06:50
martin-g added a commit that referenced this pull request Jan 27, 2026
1. Lazy load DefaultSecureRandomSupplier in SecuritySettings.java
2. Lazy load `SecureRandom.getInstance("SHA1PRNG")` in
DefaultSecureRandomSupplier.java

(cherry picked from commit 5710d7d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants