A sampling hash generator for files