]
Bela Ban resolved JGRP-2096.
----------------------------
Resolution: Done
Replace Math.random() with ThreadLocalRandom.current().nextX()
--------------------------------------------------------------
Key: JGRP-2096
URL:
https://issues.jboss.org/browse/JGRP-2096
Project: JGroups
Issue Type: Enhancement
Reporter: Bela Ban
Assignee: Bela Ban
Priority: Optional
Fix For: 4.0
{{ThreadLocalRandom.current().nextX()}} is faster than {{Math.random()}} and has no
contention issues as it's thread-local only.
{{Util.random()}} currently uses {{Math.random()}}.