RFR 8174909: Doc error in SecureRandom

Wang Weijun weijun.wang at oracle.com
Tue Feb 14 10:55:33 UTC 2017


Please review this doc bug

diff --git 
a/src/java.base/share/classes/java/security/DrbgParameters.java 
b/src/java.base/share/classes/java/security/DrbgParameters.java
--- a/src/java.base/share/classes/java/security/DrbgParameters.java
+++ b/src/java.base/share/classes/java/security/DrbgParameters.java
@@ -53,8 +53,8 @@
   * for CTR_DRBG. Please note that it is not the algorithm used in
   * {@link SecureRandom#getInstance}, which we will call a
   * <em>SecureRandom algorithm</em> below),
- * <li> optionally features, including prediction resistance
- * and reseeding supports.
+ * <li> optional features, including prediction resistance
+ * and reseeding supports,
   * <li> highest security strength.
   * </ul>
   * <p>
diff --git a/src/java.base/share/classes/java/security/SecureRandom.java 
b/src/java.base/share/classes/java/security/SecureRandom.java
--- a/src/java.base/share/classes/java/security/SecureRandom.java
+++ b/src/java.base/share/classes/java/security/SecureRandom.java
@@ -64,8 +64,8 @@
   * <blockquote><pre>
   * SecureRandom r1 = new SecureRandom();
   * SecureRandom r2 = SecureRandom.getInstance("NativePRNG");
- * SecureRandom r3 = SecureRandom("DRBG",
- *         DrbgParameters.Instantiation(128, RESEED_ONLY, null));</pre>
+ * SecureRandom r3 = SecureRandom.getInstance("DRBG",
+ *         DrbgParameters.instantiation(128, RESEED_ONLY, null));</pre>
   * </blockquote>
   *
   * <p> The third statement above returns a {@code SecureRandom} object 
of the

Thanks
Max



More information about the security-dev mailing list