--- old/test/sun/security/pkcs11/rsa/TestKeyPairGenerator.java 2017-06-08 00:08:51.000000000 -0700 +++ new/test/sun/security/pkcs11/rsa/TestKeyPairGenerator.java 2017-06-08 00:08:51.000000000 -0700 @@ -29,6 +29,7 @@ * @library .. * @library /test/lib * @modules jdk.crypto.cryptoki + * @build jdk.test.lib.RandomFactory * @run main/othervm -Djava.security.debug=sunpkcs11 TestKeyPairGenerator * @run main/othervm -Djava.security.debug=sunpkcs11 TestKeyPairGenerator * sm TestKeyPairGenerator.policy