From 34aa937e993527ae70c82e9709e08d8d93b82c06 Mon Sep 17 00:00:00 2001 From: Bradford Wetmore Date: Wed, 9 May 2012 16:33:30 -0700 Subject: [PATCH] 7167362: SecureRandom.init should be converted, amendment to 7084245 Reviewed-by: sherman --- jdk/src/share/classes/sun/security/provider/SecureRandom.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jdk/src/share/classes/sun/security/provider/SecureRandom.java b/jdk/src/share/classes/sun/security/provider/SecureRandom.java index aee8846ed14..e79e9d7f49a 100644 --- a/jdk/src/share/classes/sun/security/provider/SecureRandom.java +++ b/jdk/src/share/classes/sun/security/provider/SecureRandom.java @@ -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 @@ implements java.io.Serializable { 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) {