Commit db0a62b6 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX] warnings

parent 7a2130c2
...@@ -29,7 +29,6 @@ import Crypto.Random.AESCtr ...@@ -29,7 +29,6 @@ import Crypto.Random.AESCtr
import Data.Binary (decode) import Data.Binary (decode)
import Prelude import Prelude
import qualified Data.ByteString.Lazy as B import qualified Data.ByteString.Lazy as B
import qualified Data.ByteString.Internal as DBI
import Gargantext.Prelude (cs) import Gargantext.Prelude (cs)
import Data.ByteString as S (ByteString, unpack) import Data.ByteString as S (ByteString, unpack)
import Data.ByteString.Char8 as C8 (pack) import Data.ByteString.Char8 as C8 (pack)
...@@ -95,10 +94,8 @@ printPass len = do ...@@ -95,10 +94,8 @@ printPass len = do
_ <- runStateT (showRandomKey len as') aesState -- enter loop _ <- runStateT (showRandomKey len as') aesState -- enter loop
return () return ()
gargPass :: Int -> IO (Int, AESRNG) gargPass :: IO (Int, AESRNG)
gargPass len = do gargPass = do
let as = ["alphanumeric","punctuation"]
let as' = filter (\c -> elem c keysAll) . nub $ unwords as
aesState <- makeSystem -- gather entropy from the system to use as the initial seed aesState <- makeSystem -- gather entropy from the system to use as the initial seed
pass <- runStateT aesRandomInt aesState -- enter loop pass <- runStateT aesRandomInt aesState -- enter loop
pure pass pure pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment