fixed pwGenerate hanging

This commit is contained in:
Jonathan Lamothe
2019-01-01 04:48:36 -05:00
parent 32c9241a2e
commit 60f40262f7
2 changed files with 4 additions and 1 deletions

View File

@@ -332,7 +332,7 @@ mkPass (x:xs) p = let p' = nextPolicy x p in
mkPool :: B.ByteString -> String
mkPool = toB64 . raw where
raw x = let x' = mkHash x in
x' `B.append` raw x
x' `B.append` raw x'
mkSeed :: String -> PWData -> B.ByteString
mkSeed pw d = toUTF8 pw `B.append` (d^.pwSalt)