hash:fold32 function