diff -r 566777f73c32 -r 7d9d372a41df jdk/src/java.base/share/classes/java/security/SecureRandom.java --- a/jdk/src/java.base/share/classes/java/security/SecureRandom.java Wed Nov 11 09:19:12 2015 +0000 +++ b/jdk/src/java.base/share/classes/java/security/SecureRandom.java Wed Nov 11 22:38:15 2015 -0500 @@ -419,7 +419,7 @@ * @since 1.5 */ public String getAlgorithm() { - return (algorithm != null) ? algorithm : "unknown"; + return Objects.toString(algorithm, "unknown"); } /**