1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-17 01:32:21 +02:00

Remove old boost includes and defines

This commit is contained in:
Ivan Savenko
2025-03-18 14:37:22 +00:00
parent 8e1bd64799
commit 7a3e1409d0
18 changed files with 37 additions and 29 deletions

View File

@ -34,8 +34,8 @@ void CRandomGenerator::setSeed(int seed)
void CRandomGenerator::resetSeed()
{
logRng->trace("CRandomGenerator::resetSeed");
boost::hash<std::string> stringHash;
auto threadIdHash = stringHash(boost::lexical_cast<std::string>(std::this_thread::get_id()));
std::hash<std::thread::id> hasher;
auto threadIdHash = hasher(std::this_thread::get_id());
setSeed(static_cast<int>(threadIdHash * std::time(nullptr)));
}