- fix linux build

This commit is contained in:
Anonymous275 authored and Simon committed 2023-01-15 17:12:35 +00:00
1 parent 9f59c27b1f
commit 688e46f524
1 file changed
+1 -1
+1 -1
View File
@@ -967,7 +967,7 @@ std::string TNetwork::Hash(const std::string& str) {
std::stringstream ret;
unsigned char* hash = SHA256(reinterpret_cast<const unsigned char*>(str.c_str()), str.length(), nullptr);
for (int i = 0; i < 32; i++) {
ret << std::hex << (int)hash[i];
ret << std::hex << static_cast<int>(hash[i]);
}
return ret.str();
}