commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject commons-crypto git commit: Only needed temporarily
Date Tue, 28 Jun 2016 17:45:47 GMT
Repository: commons-crypto
Updated Branches:
  refs/heads/master e5ddc2fed -> 59389d1f2


Only needed temporarily

Project: http://git-wip-us.apache.org/repos/asf/commons-crypto/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-crypto/commit/59389d1f
Tree: http://git-wip-us.apache.org/repos/asf/commons-crypto/tree/59389d1f
Diff: http://git-wip-us.apache.org/repos/asf/commons-crypto/diff/59389d1f

Branch: refs/heads/master
Commit: 59389d1f2dad9fda5231f3fe33d563cf19714628
Parents: e5ddc2f
Author: Sebb <sebb@apache.org>
Authored: Tue Jun 28 18:45:44 2016 +0100
Committer: Sebb <sebb@apache.org>
Committed: Tue Jun 28 18:45:44 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/commons/crypto/random/OsCryptoRandom.java   | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/59389d1f/src/main/java/org/apache/commons/crypto/random/OsCryptoRandom.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/crypto/random/OsCryptoRandom.java b/src/main/java/org/apache/commons/crypto/random/OsCryptoRandom.java
index be753e6..6b2fb0c 100644
--- a/src/main/java/org/apache/commons/crypto/random/OsCryptoRandom.java
+++ b/src/main/java/org/apache/commons/crypto/random/OsCryptoRandom.java
@@ -36,8 +36,6 @@ class OsCryptoRandom extends Random implements CryptoRandom {
 
     private static final int RESERVOIR_LENGTH = 8192;
 
-    private String randomDevPath;
-
     private transient FileInputStream stream;
 
     private final byte[] reservoir = new byte[RESERVOIR_LENGTH];
@@ -69,8 +67,7 @@ class OsCryptoRandom extends Random implements CryptoRandom {
      * {@link ConfigurationKeys#SECURE_RANDOM_DEVICE_FILE_PATH_DEFAULT}
      */
     public OsCryptoRandom(Properties props) {
-        randomDevPath = getRandomDevPath(props);
-        File randomDevFile = new File(randomDevPath);
+        File randomDevFile = new File(getRandomDevPath(props));
 
         try {
             close();


Mime
View raw message