7167362: SecureRandom.init should be converted, amendment to 7084245
authorwetmore
Wed, 09 May 2012 16:33:30 -0700
changeset 12682 4156af43d0bf
parent 12681 ebee74a1fd8c
child 12683 5c743840dd8a
7167362: SecureRandom.init should be converted, amendment to 7084245 Reviewed-by: sherman
jdk/src/share/classes/sun/security/provider/SecureRandom.java
--- a/jdk/src/share/classes/sun/security/provider/SecureRandom.java	Wed May 09 11:14:22 2012 -0700
+++ b/jdk/src/share/classes/sun/security/provider/SecureRandom.java	Wed May 09 16:33:30 2012 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -102,7 +102,7 @@
         try {
             digest = MessageDigest.getInstance ("SHA");
         } catch (NoSuchAlgorithmException e) {
-            throw new InternalError("internal error: SHA-1 not available.");
+            throw new InternalError("internal error: SHA-1 not available.", e);
         }
 
         if (seed != null) {