harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mloe...@apache.org
Subject svn commit: r409558 - /incubator/harmony/enhanced/classlib/trunk/modules/crypto/src/main/java/javax/crypto/Cipher.java
Date Fri, 26 May 2006 05:17:26 GMT
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);



Mime
View raw message