ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/Random.java
(Generate patch)

Comparing jsr166/src/main/java/util/Random.java (file contents):
Revision 1.21 by jsr166, Sun May 18 23:47:56 2008 UTC vs.
Revision 1.23 by jsr166, Mon May 19 00:27:06 2008 UTC

# Line 51 | Line 51 | import sun.misc.Unsafe;
51   * Many applications will find the method {@link Math#random} simpler to use.
52   *
53   * @author  Frank Yellin
54 * @version %I%, %G%
54   * @since   1.0
55   */
56   public
# Line 505 | Line 504 | class Random implements java.io.Serializ
504  
505          // The seed is read in as {@code long} for
506          // historical reasons, but it is converted to an AtomicLong.
507 <        long seedVal = (long) fields.get("seed", -1L);
507 >        long seedVal = fields.get("seed", -1L);
508          if (seedVal < 0)
509            throw new java.io.StreamCorruptedException(
510                                "Random: invalid seed");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines