Why is the hash part of the input? I would think that the function would pick a hash?