Commit 0d8c1292 authored by David Geisler's avatar David Geisler

update

parent 00b7ef82
......@@ -106,7 +106,7 @@ namespace utue::pe::tools::lsh {
* @param key Token to calculate hash
* @return Hash of the token
*/
unsigned long operator()(const Token &key) const;
unsigned long operator()(const Token &key, const unsigned long& seed) const;
/**
* Compares two Tokens without using the hash
* @param left First Token
......
Subproject commit b5e3a6a7a536312d827b1da29a60ee04a6b68da3
Subproject commit f6b1cfaf701bf0ede0d2f4eac5e52ded83522b66
......@@ -59,8 +59,8 @@
namespace utue::pe::tools::lsh {
unsigned long Token::Hash::operator()(const Token& key) const {
return key.hash();
unsigned long Token::Hash::operator()(const Token& key, const unsigned long& seed) const {
return key.hash(seed);
}
......@@ -165,11 +165,7 @@ namespace utue::pe::tools::lsh {
std::stringstream ss;
ss << "type: " << this->m_type << ", length: " << this->m_length << ", value: ";
if(this->m_value == nullptr)
ss << "null";
else
ss << "\"" << std::string((const char*)this->m_value,this->m_length) << "\"";
ss << "\"" << std::string((const char*)this->m_value,this->m_length) << "\"";
return ss.str();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment