summaryrefslogtreecommitdiff
path: root/module/bloomfilter.m
blob: d33b656af5391f712998e27a19ee633cbcf91913 (plain)
1
2
3
4
5
6
7
Bloomfilter: module {
	PATH:	con "/dis/lib/bloomfilter.dis";
	init:		fn();
	# logm is log base 2 of the number of bits in the bloom filter.
	# k is number of independent hashes of d that are entered into the filter.
	filter:	fn(d: array of byte, logm, k: int): Sets->Set;
};