mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-06-18 22:50:54 +00:00
- fix linux build
This commit is contained in:
+1
-1
@@ -967,7 +967,7 @@ std::string TNetwork::Hash(const std::string& str) {
|
|||||||
std::stringstream ret;
|
std::stringstream ret;
|
||||||
unsigned char* hash = SHA256(reinterpret_cast<const unsigned char*>(str.c_str()), str.length(), nullptr);
|
unsigned char* hash = SHA256(reinterpret_cast<const unsigned char*>(str.c_str()), str.length(), nullptr);
|
||||||
for (int i = 0; i < 32; i++) {
|
for (int i = 0; i < 32; i++) {
|
||||||
ret << std::hex << (int)hash[i];
|
ret << std::hex << static_cast<int>(hash[i]);
|
||||||
}
|
}
|
||||||
return ret.str();
|
return ret.str();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user