Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2.0
-
None
Description
java.util.Random always locks and thus creates a bottleneck in heavy threaded server scenarios. In Java 7 a new ThreadLocalRandom got introduced which fixes that but we cannot use this as we still need to support java5 and 6.
The algorithm used in java.util.Random also is not the best in terms of spreading.
I propose to introduce a small XorShift random generator which has a very good spreading and is vastly faster than java.util.Random as well.