RFR: 8248862: Implement Enhanced Pseudo-Random Number Generators [v3]

Roger Riggs rriggs at openjdk.java.net
Fri Feb 26 21:53:47 UTC 2021


On Wed, 25 Nov 2020 16:22:32 GMT, Jim Laskey <jlaskey at openjdk.org> wrote:

>> src/java.base/share/classes/java/util/random/RandomGeneratorFactory.java line 106:
>> 
>>> 104:      * Map of provider classes.
>>> 105:      */
>>> 106:     private static volatile Map<String, Provider<? extends RandomGenerator>> factoryMap;
>> 
>> should be FACTORY_MAP given that it's a static field
>
> will fall out of using  class holder idiom

IntelliJ warns that this volatile field is unused. It has been replaced by the method getFactoryMap().

-------------

PR: https://git.openjdk.java.net/jdk/pull/1292



More information about the security-dev mailing list