A bloom filter uses a hash function (or many) to generate a value between 0 and m given an input string X. My question is how to you use a hash function to generate a value
Simplest way would probably be to just convert the hash output (as a byte sequence) to a single binary number and take that modulo m.