ofbiz icon indicating copy to clipboard operation
ofbiz copied to clipboard

Math.random -> Random.nextDouble

Open bd2019us opened this issue 5 years ago • 0 comments

OFBIZ-11020 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.

bd2019us avatar May 11 '19 22:05 bd2019us