RFR 8023155: Ensure functional consistency across Random, ThreadLocalRandom, SplittableRandom

Doug Lea dl at cs.oswego.edu
Tue Aug 20 11:46:37 UTC 2013


On 08/19/2013 07:07 AM, Paul Sandoz wrote:
> Hi,
>
> This patch updates Random and ThreadLocalRandom to have functional consistency (for the most part) across Random, ThreadLocalRandom and SplittableRandom:
>
>    http://cr.openjdk.java.net/~psandoz/tl/JDK-8023155-Random-TLR-SR-sync/webrev/
>

A couple of extra @since's crept in. See below.


>
> I have yet to define a common interface e.g. RandomGenerator

After scrapping this idea twice now already for JDK8 time frame, I
think leave it for JDK9.

...

diff ThreadLocalRandom.java~ ThreadLocalRandom.java
316d315
<      * @since 1.8
331d329
<      * @since 1.8
370d367
<      * @since 1.8
425d421
<      * @since 1.8
470d465
<      * @since 1.8
482d476
<      * @since 1.8




More information about the core-libs-dev mailing list