topolik/liferay-portal — pull request #54 by sammso (2013-08-23 13:16:49+00:00)
Title: LPS-38745

Hi Tomáš,

I decided to refactor our Randomizer and due compatibility and to nicely deprecate, I decided to create new RandomUtil and which is using this RandomUtil -> Random interface pattern that we use through out. Random interface is java.util.Random compatible, but not assignable. This is not easiest solution, but I was thinking that this kind of solution fit's on our architecture. What you think?

I did create also the SecureRandomImpl implementation of Random and option for RandomUtil to use that, but it is not used anywhere yet. That would be then task of the other CWE 331 related issues.