Duplicates implementation of QsomeJob:hash().