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

Comparing jsr166/src/main/java/util/concurrent/ThreadLocalRandom.java (file contents):
Revision 1.46 by jsr166, Sat Jun 4 20:29:20 2016 UTC vs.
Revision 1.47 by dl, Sat Nov 12 00:11:54 2016 UTC

# Line 168 | Line 168 | public class ThreadLocalRandom extends R
168          return r;
169      }
170  
171 <    // We must define this, but never use it.
171 >    /**
172 >     * Generates a pseudorandom number with the indicated number of
173 >     * bits. Unlike in superclass @{link Random}, this method is never
174 >     * internally called or used by any other publicly accessible
175 >     * method.
176 >     *
177 >     * @param  bits random bits
178 >     * @return the next pseudorandom value from this random number
179 >     *         generator's sequence
180 >     */
181      protected int next(int bits) {
182          return (int)(mix64(nextSeed()) >>> (64 - bits));
183      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines