void TestRunner::getHash(Testable* testable, unsigned char result[]){ Matches matches = testable->collect(); std::sort(matches.begin(), matches.end(), Match::sortFun); Matches::iterator it; SHA1_Init(&shaCtx); for(it=matches.begin(); it!=matches.end(); ++it){ std::string matchStr = (*it).toString(); SHA1_Update(&shaCtx, matchStr.c_str(), matchStr.size()); } SHA1_Final(result, &shaCtx); }