Skip to content

Commit

Permalink
8301637: ThreadLocalRandom.current().doubles().parallel() contention
Browse files Browse the repository at this point in the history
Reviewed-by: alanb
  • Loading branch information
kabutz authored and amaembo committed Feb 2, 2023
1 parent c647ae6 commit cf6b9eb
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -437,6 +437,10 @@ public int nextInt() {
public long nextLong() {
return ThreadLocalRandom.current().nextLong();
}

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

/**
Expand Down

1 comment on commit cf6b9eb

@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.