[jira] [Updated] (OFBIZ-11020) Use Random.nextDouble() instead of Math.random()

2020-02-22 Thread Michael Brohl (Jira)


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

Michael Brohl updated OFBIZ-11020:
--
Sprint: OFBiz Community Day (Feb 2020)

> Use Random.nextDouble() instead of Math.random()
> 
>
> Key: OFBIZ-11020
> URL: https://issues.apache.org/jira/browse/OFBIZ-11020
> Project: OFBiz
>  Issue Type: Improvement
>  Components: framework
>Reporter: bd2019us
>Assignee: Michael Brohl
>Priority: Trivial
> Attachments: OFBIZ-11020.patch
>
>
> When using Math.random instead of Random.nextDouble, there is a slight 
> performance cost. Due to Math.random invoking an instance of Random This cost 
> can be alleviated by directly using Random.nextDouble. This also allows for 
> more control over the randomization in the future.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (OFBIZ-11020) Use Random.nextDouble() instead of Math.random()

2019-05-10 Thread bd2019us (JIRA)


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

bd2019us updated OFBIZ-11020:
-
Attachment: OFBIZ-11020.patch

> Use Random.nextDouble() instead of Math.random()
> 
>
> Key: OFBIZ-11020
> URL: https://issues.apache.org/jira/browse/OFBIZ-11020
> Project: OFBiz
>  Issue Type: Improvement
>  Components: framework
>Reporter: bd2019us
>Priority: Trivial
> Attachments: OFBIZ-11020.patch
>
>
> When using Math.random instead of Random.nextDouble, there is a slight 
> performance cost. Due to Math.random invoking an instance of Random This cost 
> can be alleviated by directly using Random.nextDouble. This also allows for 
> more control over the randomization in the future.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)