summaryrefslogtreecommitdiff
blob: 6aebe6fab6ced3c797179387d246425032b0a587 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
commit bb712862c868975ab033e1079751d9e3787d3a33
Author: Ollie Charles <ollie@ocharles.org.uk>
Date:   Wed Sep 18 14:54:22 2019 +0100

    Update Test.hs

diff --git a/Test.hs b/Test.hs
index dd61302..4fa26ca 100644
--- a/Test.hs
+++ b/Test.hs
@@ -98,10 +98,10 @@ instance Arbitrary LargePrime where
   arbitrary =
     do seed <- BSS.pack `fmap` replicateM 4096 arbitrary
        case newGen seed of
-        Left _ -> fail "DRBG initialization error."
+        Left _ -> error "DRBG initialization error."
         Right (g :: HashDRBG) ->
           case largeRandomPrime g 64 of
-            Left _ -> fail "Large prime generation failure."
+            Left _ -> error "Large prime generation failure."
             Right (i, _) -> return (LP i)
 
 data KeyPairIdx = KPI Int