summaryrefslogtreecommitdiffstats
path: root/lib/hcrypto/test_crypto.in
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hcrypto/test_crypto.in')
-rw-r--r--lib/hcrypto/test_crypto.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/hcrypto/test_crypto.in b/lib/hcrypto/test_crypto.in
index 06505bf..f24ef26 100644
--- a/lib/hcrypto/test_crypto.in
+++ b/lib/hcrypto/test_crypto.in
@@ -78,7 +78,8 @@ for a in unix fortuna egd w32crypto ;do
echo "random metod $a out for dinner"
continue
fi
- cmp crypto-test crypto-test2 && { echo "rand output same!" ; exit 1; }
+ cmp crypto-test crypto-test2 >/dev/null 2>/dev/null && \
+ { echo "rand output same!" ; exit 1; }
done
./example_evp_cipher 1 ${srcdir}/test_crypto.in test-out-1 || \
@@ -94,7 +95,7 @@ done
# RAND_file_name() when the enviroment is lacking those.
#
-if [ -e /dev/random -o -e /dev/urandom -o -e /dev/srandom -o -e /dev/arandom ] ; then
+if [ -r /dev/random -o -r /dev/urandom -o -r /dev/srandom -o -r /dev/arandom ] ; then
# try hard to unset HOME and RANDFILE
HOME=
OpenPOWER on IntegriCloud