You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by ml...@apache.org on 2006/05/26 07:17:26 UTC
svn commit: r409558 -
/incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/main/java/javax/crypto/Cipher.java
Author: mloenko
Date: Thu May 25 22:17:25 2006
New Revision: 409558
URL: http://svn.apache.org/viewvc?rev=409558&view=rev
Log:
added a comment
Modified:
incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/main/java/javax/crypto/Cipher.java
Modified: incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/main/java/javax/crypto/Cipher.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/main/java/javax/crypto/Cipher.java?rev=409558&r1=409557&r2=409558&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/main/java/javax/crypto/Cipher.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/main/java/javax/crypto/Cipher.java Thu May 25 22:17:25 2006
@@ -355,6 +355,9 @@
*/
public final void init(int opmode, Key key) throws InvalidKeyException {
if (sec_rand == null) {
+ // In theory it might be therad-unsafe but in the given case it's OK
+ // since it does not matter which SecureRandom instance is passed
+ // to the init()
sec_rand = new SecureRandom();
}
init(opmode, key, sec_rand);