restructuring

- renamed newSalt to newPWSalt
- added PWSalt type
- general style cleanup
This commit is contained in:
Jonathan Lamothe
2018-12-18 14:19:19 -05:00
parent 098aaeb49f
commit e28faacc13
5 changed files with 25 additions and 22 deletions

View File

@@ -35,7 +35,7 @@ tests = TestLabel "newPData" $ TestList
testSalt x = TestLabel "pwSalt" $
x^.pwSalt ~?= salt where
(salt, _) = newSalt g
(salt, _) = newPWSalt g
testPolicy x = TestLabel "pwPolicy" $
x^.pwPolicy ~?= newPWPolicy