Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-7199

Replace Math.Random with Random.nextDouble

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 5.15.10, 5.16.0
    • Broker
    • None
    • Patch Available
    • Patch

    Description

      For better control over randomness and comparatively less performance overhead, Random.nextDouble can be used instead of Math.random. Such a sample instance is showed in the attached patch. 

      Attachments

        1. AMQ-7199.patch
          1 kB
          bd2019us

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              bd2019us bd2019us
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m