Skip to content

Commit caeb000

Browse files
committed
fix(bloomfilter): add salt to examples
1 parent 9fe6c16 commit caeb000

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bloomfilter/examples/spell.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ main :: IO ()
1010
main = do
1111
files <- getArgs
1212
dictionary <- readFile "/usr/share/dict/words"
13-
let !bloom = B.fromList (B.policyForFPR 0.01) (words dictionary)
13+
let !bloom = B.fromList 0 (B.policyForFPR 0.01) (words dictionary)
1414
forM_ files $ \file ->
1515
putStrLn . unlines . filter (`B.notElem` bloom) . words
1616
=<< readFile file

0 commit comments

Comments
 (0)