We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ab0898 commit d0ba6a5Copy full SHA for d0ba6a5
bloomfilter/examples/spell.hs
@@ -10,7 +10,10 @@ main :: IO ()
10
main = do
11
files <- getArgs
12
dictionary <- readFile "/usr/share/dict/words"
13
- let !bloom = B.fromList (B.policyForFPR 0.01) (words dictionary)
+ let !bloom = B.fromList (B.policyForFPR 0.01) bSalt (words dictionary)
14
forM_ files $ \file ->
15
putStrLn . unlines . filter (`B.notElem` bloom) . words
16
=<< readFile file
17
+
18
+bSalt :: B.Salt
19
+bSalt = 4
0 commit comments