You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2016/07/06 23:04:29 UTC
commons-crypto git commit: Windows does not have /dev/random
Repository: commons-crypto
Updated Branches:
refs/heads/master edbdf9185 -> a3417803b
Windows does not have /dev/random
Project: http://git-wip-us.apache.org/repos/asf/commons-crypto/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-crypto/commit/a3417803
Tree: http://git-wip-us.apache.org/repos/asf/commons-crypto/tree/a3417803
Diff: http://git-wip-us.apache.org/repos/asf/commons-crypto/diff/a3417803
Branch: refs/heads/master
Commit: a3417803b05265d744125c9a6aff4df27f809bf4
Parents: edbdf91
Author: Sebb <se...@apache.org>
Authored: Thu Jul 7 00:04:26 2016 +0100
Committer: Sebb <se...@apache.org>
Committed: Thu Jul 7 00:04:26 2016 +0100
----------------------------------------------------------------------
.../org/apache/commons/crypto/random/OsCryptoRandomTest.java | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/a3417803/src/test/java/org/apache/commons/crypto/random/OsCryptoRandomTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/crypto/random/OsCryptoRandomTest.java b/src/test/java/org/apache/commons/crypto/random/OsCryptoRandomTest.java
index 0c95371..69f6d6a 100644
--- a/src/test/java/org/apache/commons/crypto/random/OsCryptoRandomTest.java
+++ b/src/test/java/org/apache/commons/crypto/random/OsCryptoRandomTest.java
@@ -22,10 +22,14 @@ import static org.junit.Assert.fail;
import java.security.GeneralSecurityException;
import java.util.Properties;
+import org.junit.Assume;
+
public class OsCryptoRandomTest extends AbstractRandomTest {
@Override
public CryptoRandom getCryptoRandom() throws GeneralSecurityException {
+ // Windows does not have a /dev/random device
+ Assume.assumeTrue(!System.getProperty("os.name").contains("Windows"));
Properties props = new Properties();
props.setProperty(
CryptoRandomFactory.CLASSES_KEY,