Details
Description
The class java.util.Random is intended to provide crossplatform bitforbit reproducability of random numbers. However, the JavaDoc for the nextGaussian method is given in terms of Math.log; since 1.3 and the introduction of the StrictMath class, Math.log has not been required to get bitwise reproducible results across platforms. Therefore, to maintain the original intended specification of nextGaussian, the specification should require StrictMath.log instead of Math.log. (For clarity StrictMath.sqrt should be required instead of Math.sqrt although StrictMath.sqrt and Math.sqrt and defined, and required, to return the same results in all cases.)
The possible behavioral differences between Math.log and StrictMath was not a de facto issue until the recent intrinsification of log, 6196383.
###@###.### 2005125 06:34:57 GMT
###@###.### 2005125 06:52:16 GMT
The possible behavioral differences between Math.log and StrictMath was not a de facto issue until the recent intrinsification of log, 6196383.
###@###.### 2005125 06:34:57 GMT
###@###.### 2005125 06:52:16 GMT
Attachments
Issue Links
 relates to

JDK6477693 ommited synchronized modifier in Random.nextGaussian()
 Closed

JDK6196383 LN and LOG10 should be implemented for C1
 Resolved

JDK6214949 JCK1.5a: api/java_util/Random/index.html#Random test fails, mustang
 Resolved