# HG changeset patch # User weijun # Date 1487120905 -28800 # Node ID b2566397a3c05952bf4aa12410d8c238438781e0 # Parent 1dc22b50717ae12afc74f97847067cfa75719c63 8174909: Doc error in SecureRandom Reviewed-by: mullan diff -r 1dc22b50717a -r b2566397a3c0 jdk/src/java.base/share/classes/java/security/DrbgParameters.java --- a/jdk/src/java.base/share/classes/java/security/DrbgParameters.java Tue Feb 14 14:29:58 2017 -0800 +++ b/jdk/src/java.base/share/classes/java/security/DrbgParameters.java Wed Feb 15 09:08:25 2017 +0800 @@ -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 * SecureRandom algorithm below), - *
  • optionally features, including prediction resistance - * and reseeding supports. + *
  • optional features, including prediction resistance + * and reseeding supports, *
  • highest security strength. * *

    diff -r 1dc22b50717a -r b2566397a3c0 jdk/src/java.base/share/classes/java/security/SecureRandom.java --- a/jdk/src/java.base/share/classes/java/security/SecureRandom.java Tue Feb 14 14:29:58 2017 -0800 +++ b/jdk/src/java.base/share/classes/java/security/SecureRandom.java Wed Feb 15 09:08:25 2017 +0800 @@ -64,8 +64,8 @@ *

      * SecureRandom r1 = new SecureRandom();
      * SecureRandom r2 = SecureRandom.getInstance("NativePRNG");
    - * SecureRandom r3 = SecureRandom("DRBG",
    - *         DrbgParameters.Instantiation(128, RESEED_ONLY, null));
    + * SecureRandom r3 = SecureRandom.getInstance("DRBG", + * DrbgParameters.instantiation(128, RESEED_ONLY, null)); *
    * *

    The third statement above returns a {@code SecureRandom} object of the