Use pre-exisiting type for SecureRandom

This commit is contained in:
Ed Minnix
2023-11-16 11:08:10 -05:00
parent 4678302edb
commit 6e70e6c85a

View File

@@ -30,9 +30,8 @@ private class RandomMethodSource extends WeakRandomnessSource {
*/
abstract private class SafeRandomImplementation extends RefType { }
private class TypeSecureRandom extends SafeRandomImplementation {
TypeSecureRandom() { this.hasQualifiedName("java.security", "SecureRandom") }
}
private class TypeSecureRandom extends SafeRandomImplementation instanceof SecureRandomNumberGenerator
{ }
private class TypeHadoopOsSecureRandom extends SafeRandomImplementation {
TypeHadoopOsSecureRandom() {