Skip to content

Commit

Permalink
8301637: ThreadLocalRandom.current().doubles().parallel() contention
Browse files Browse the repository at this point in the history
Backport-of: cf6b9eb8c8cca4a54fbd97fb073eafc1b8835099
  • Loading branch information
shipilev committed May 30, 2023
1 parent bc78e07 commit ff0ee6d
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -422,6 +422,10 @@ public int nextInt() {
public long nextLong() {
return ThreadLocalRandom.current().nextLong();
}

public double nextDouble() {
return ThreadLocalRandom.current().nextDouble();
}
}

/**
Expand Down

1 comment on commit ff0ee6d

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.