Use ThreadLocalRandom instead of Random which is synchronized

This commit is contained in:
Stephane Landelle 2020-09-06 23:33:17 +02:00
parent bbdce526c7
commit b2643fc0dd
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ import scala.concurrent.duration._
class RewardsScenario extends Simulation {
def randCustId() = Random.nextInt(100000)
def randCustId() = java.util.concurrent.ThreadLocalRandom.current().nextInt(1, 10000)
val httpProtocol = http.baseUrl("http://localhost:8080")
.acceptHeader("text/html,application/json;q=0.9,*/*;q=0.8")