github allowed fallback on URL error for finding random source, removed use of new SecureRandom to try and prevent death spiral...
@@ -133,7 +133,7 @@ private static SecureRandom createCoreSecureRandom()
}
catch (Exception e)
{
- return new SecureRandom(); // we're desperate, it's worth a try.
+ return new CoreSecureRandom(findSource());
}
}
}
@@ -292,7 +292,7 @@ public InputStream run()
}
catch (IOException e)
{
- throw new InternalError("unable to open random source");
+ throw new IllegalStateException("unable to open random source");
}
}
});
