[concurrency-interest] ThreadLocalRandom initial seed

Kasper Nielsen kasper at kav.dk
Tue Oct 4 10:02:44 EDT 2011


On 06-06-2011 22:27, Martin Buchholz wrote:
> On Fri, Jun 3, 2011 at 14:35, Martin Buchholz<martinrb at google.com>  wrote:
>
> jsr166 CVS now has a fixed version of Random.java that causes
> ThreadLocalRandom to work correctly.

Was java 7 shipped without the fix?

I´m doing
public static void main(String[] args) {
     System.out.println(ThreadLocalRandom.current().nextInt());
}
and getting a 0 everytime

cheers
  Kasper


More information about the Concurrency-interest mailing list