handle an impossible case consistently with other parts of the library

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@810206 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luc Maisonobe 2009-09-01 20:05:22 +00:00
parent 0234e46518
commit de33e91191
1 changed files with 2 additions and 1 deletions

View File

@ -241,7 +241,8 @@ public class RandomDataImpl implements RandomData, Serializable {
try {
alg = MessageDigest.getInstance("SHA-1");
} catch (NoSuchAlgorithmException ex) {
return null; // gulp FIXME? -- this *should* never fail.
// this should never happen
throw MathRuntimeException.createInternalError(ex);
}
alg.reset();