On Wed, 16 Nov 2022 21:28:37 GMT, Weijun Wang <[email protected]> wrote:

> I was wondering if secure random generation could be sometimes fast and 
> sometimes slow. I'm also not sure about how NativePRNG behaves in a 
> multi-thread environment.

I see your point.  But it is still part of the key generation.  Measuring key 
generation using a fake secure random may be not useful in practice.  

The performance stability impact may be mitigated by the JMH mechanism.   I did 
not worry about it.

It may be useful to check different secure random providers, but it would be 
better to be addressed in a different patch.

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

PR: https://git.openjdk.org/jdk/pull/11124

Reply via email to