On Sat, 6 Dec 2025 06:09:34 GMT, Hai-May Chao <[email protected]> wrote:

>> src/java.base/share/classes/sun/security/ssl/Hybrid.java line 143:
>> 
>>> 141: 
>>> 142:         @Override
>>> 143:         public void initialize(AlgorithmParameterSpec params,
>> 
>> Since you initialize here, is it still necessary to init inside the 
>> constructor?
>
> No, so removed init from the constructor.

I was wondering the same thing.

I don't think it hurts anything, other than calling the initialization twice, 
but likely could be removed.  

The first call uses the `JCAUtil.getDefSecureRandom()` instead, but that is 
replaced with the real context `SecureRandom` when this method is called.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/27614#discussion_r2594596953

Reply via email to