[jboss-jira] [JBoss JIRA] (JGRP-2096) Replace Math.random() with ThreadLocalRandom.current().nextX()
Bela Ban (JIRA)
issues at jboss.org
Thu Aug 11 09:23:02 EDT 2016
Bela Ban created JGRP-2096:
------------------------------
Summary: 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()}}.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list