You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2019/08/19 17:31:00 UTC

[jira] [Resolved] (AMQ-7199) Replace Math.Random with Random.nextDouble

     [ https://issues.apache.org/jira/browse/AMQ-7199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré resolved AMQ-7199.
---------------------------------------
    Resolution: Fixed

> Replace Math.Random with Random.nextDouble
> ------------------------------------------
>
>                 Key: AMQ-7199
>                 URL: https://issues.apache.org/jira/browse/AMQ-7199
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>            Reporter: bd2019us
>            Assignee: Jean-Baptiste Onofré
>            Priority: Trivial
>             Fix For: 5.16.0, 5.15.10
>
>         Attachments: AMQ-7199.patch
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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. 



--
This message was sent by Atlassian Jira
(v8.3.2#803003)