Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2096

Replace Math.random() with ThreadLocalRandom.current().nextX()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Optional Optional
    • 4.0
    • None
    • None

      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().

            rhn-engineering-bban Bela Ban
            rhn-engineering-bban Bela Ban
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: