mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8301637: ThreadLocalRandom.current().doubles().parallel() contention
Reviewed-by: alanb
This commit is contained in:
parent
c647ae6c32
commit
cf6b9eb8c8
1 changed files with 4 additions and 0 deletions
|
@ -437,6 +437,10 @@ public final class ThreadLocalRandom extends Random {
|
|||
public long nextLong() {
|
||||
return ThreadLocalRandom.current().nextLong();
|
||||
}
|
||||
|
||||
public double nextDouble() {
|
||||
return ThreadLocalRandom.current().nextDouble();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue