summaryrefslogtreecommitdiff
path: root/Test.hs
diff options
context:
space:
mode:
authorGravatar guilhem <guilhem@fripost.org>2013-04-05 21:06:16 +0200
committerGravatar Joey Hess <joey@kitenet.net>2013-04-06 16:09:51 -0400
commita7f50205bb1ccd41d4a9ab4e11d984e643be755f (patch)
tree519c7148a87575896450b7dc43fc58e8b34dfe02 /Test.hs
parentf758f6d5cbef989bff75fcd140edb8e0b8899b84 (diff)
Generate ciphers with a better entropy.
Unless highRandomQuality=false (or --fast) is set, use Libgcypt's 'GCRY_VERY_STRONG_RANDOM' level by default for cipher generation, like it's done for OpenPGP key generation. On the assistant side, the random quality is left to the old (lower) level, in order not to scare the user with an enless page load due to the blocking PRNG waiting for IO actions.
Diffstat (limited to 'Test.hs')
-rw-r--r--Test.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Test.hs b/Test.hs
index 56c70573d..ec578f591 100644
--- a/Test.hs
+++ b/Test.hs
@@ -735,6 +735,7 @@ test_crypto = "git-annex crypto" ~: intmpclonerepo $ when Build.SysConfig.gpg $
, "type=directory"
, "encryption=" ++ Utility.Gpg.testKeyId
, "directory=dir"
+ , "highRandomQuality=false"
]
initremote @? "initremote failed"
initremote @? "initremote failed when run twice in a row"