RFR: 8220730: sun.security.provider.SecureRandom default constructor has wrong documentation [v2]
Weijun Wang
weijun at openjdk.java.net
Thu Nov 26 17:44:58 UTC 2020
On Thu, 26 Nov 2020 16:59:11 GMT, Bradford Wetmore <wetmore at openjdk.org> wrote:
>> This is to fix some out-of-date information in the javadoc for the SHA1PRNG that has generated a customer bug.
>
> Bradford Wetmore has updated the pull request incrementally with one additional commit since the last revision:
>
> Minor grammar error
I feel some sentences are still not precise.
src/java.base/share/classes/sun/security/provider/SecureRandom.java line 68:
> 66:
> 67: /**
> 68: * This empty constructor.
How about "An empty constructor that creates an unseeded SecureRandom object"?
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...".
-------------
PR: https://git.openjdk.java.net/jdk/pull/1461
More information about the security-dev
mailing list