RFR: 8220730: sun.security.provider.SecureRandom default constructor has wrong documentation [v2]

Weijun Wang weijun at openjdk.java.net
Thu Nov 26 18:00:07 UTC 2020

On Thu, 26 Nov 2020 17:55:06 GMT, Bradford Wetmore <wetmore at openjdk.org> wrote:

>> src/java.base/share/classes/sun/security/provider/SecureRandom.java line 78:
>>> 76:      *
>>> 77:      * <p>The first time this constructor is called in a given Virtual Machine,
>>> 78:      * it may take several seconds of CPU time to seed the generator, depending
>> In my understanding this is not true. The constructor will finish in no time, it's the first engineBytes() call that will take several seconds. We may say "this auto seeding process will...".
> Are you talking about the line 78?  Yes, you are correct, I didn't update anything beyond the initial comment.  I can update that as well.

Yes, the paragraph starting from line 77.


PR: https://git.openjdk.java.net/jdk/pull/1461

More information about the security-dev mailing list