#include "huge.h"
#include "timer.h"
-#include "crc32.h"
#include "database.h"
#include "hs_compile.h"
#include "hs_internal.h"
#include <cassert>
#include <cstring>
+#include <functional>
#include <iomanip>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
+#include <boost/crc.hpp>
+
using namespace std;
EngineContext::EngineContext(const hs_database_t *db) {
string info = info_oss.str();
- u32 crc = Crc32c_ComputeBuf(0, info.data(), info.size());
+ boost::crc_32_type crc;
+
+ crc.process_bytes(info.data(), info.length());
// return STL string with printable version of digest
ostringstream oss;
- oss << hex << setw(8) << setfill('0') << crc << dec;
+ oss << hex << setw(8) << setfill('0') << crc.checksum() << dec;
return oss.str();
}