ofbiz
ofbiz copied to clipboard
Math.random -> Random.nextDouble
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.