summaryrefslogtreecommitdiffhomepage
path: root/HTTP
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-10-07 10:18:31 -0400
committerJoey Hess <joeyh@joeyh.name>2016-10-07 10:21:02 -0400
commit3e432c60d2c6b3fecd920e8053ba4e9a75965dbd (patch)
tree4d6d8bda9efe4fae54e5509703b30aa2097239f9 /HTTP
parent8069f11684819fb229cfe9e40c680732776c7c9c (diff)
downloadkeysafe-3e432c60d2c6b3fecd920e8053ba4e9a75965dbd.tar.gz
Removed dependency on crypto-random.
Use raaz for random bytestring generation exclusively. It was already used in all important places, but chaffing was using crypto-random. Note that System.Random is used for delays during chaffing and by random-shuffle.
Diffstat (limited to 'HTTP')
-rw-r--r--HTTP/ProofOfWork.hs2
1 files changed, 0 insertions, 2 deletions
diff --git a/HTTP/ProofOfWork.hs b/HTTP/ProofOfWork.hs
index 39073b9..a94b19b 100644
--- a/HTTP/ProofOfWork.hs
+++ b/HTTP/ProofOfWork.hs
@@ -119,8 +119,6 @@ mkRandomSalt = do
rs <- replicateM 16 (Raaz.random prg :: IO Word8)
return $ RandomSalt $ T.pack $ concatMap show rs
-instance Raaz.Random Word8
-
class POWIdent p where
getPOWIdent :: p -> B.ByteString