8164923: Error in the documentation for java.lang.Random
authorrriggs
Thu, 22 Dec 2016 23:35:52 +0530
changeset 43003 b1c1a42602d6
parent 43002 6d505224e787
child 43004 54896b192cc7
8164923: Error in the documentation for java.lang.Random Reviewed-by: rriggs Contributed-by: abhijit.r.roy@oracle.com
jdk/src/java.base/share/classes/java/util/Random.java
--- a/jdk/src/java.base/share/classes/java/util/Random.java	Thu Jan 05 19:46:39 2017 +0000
+++ b/jdk/src/java.base/share/classes/java/util/Random.java	Thu Dec 22 23:35:52 2016 +0530
@@ -187,7 +187,7 @@
      *
      * This is a linear congruential pseudorandom number generator, as
      * defined by D. H. Lehmer and described by Donald E. Knuth in
-     * <i>The Art of Computer Programming,</i> Volume 3:
+     * <i>The Art of Computer Programming,</i> Volume 2:
      * <i>Seminumerical Algorithms</i>, section 3.2.1.
      *
      * @param  bits random bits
@@ -570,7 +570,7 @@
      * }}</pre>
      * This uses the <i>polar method</i> of G. E. P. Box, M. E. Muller, and
      * G. Marsaglia, as described by Donald E. Knuth in <i>The Art of
-     * Computer Programming</i>, Volume 3: <i>Seminumerical Algorithms</i>,
+     * Computer Programming</i>, Volume 2: <i>Seminumerical Algorithms</i>,
      * section 3.4.1, subsection C, algorithm P. Note that it generates two
      * independent values at the cost of only one call to {@code StrictMath.log}
      * and one call to {@code StrictMath.sqrt}.