mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-03 00:46:55 +02:00
Removed usage of boost::thread from vcmi, except for AI
This commit is contained in:
@ -35,7 +35,7 @@ void CRandomGenerator::resetSeed()
|
||||
{
|
||||
logRng->trace("CRandomGenerator::resetSeed");
|
||||
boost::hash<std::string> stringHash;
|
||||
auto threadIdHash = stringHash(boost::lexical_cast<std::string>(boost::this_thread::get_id()));
|
||||
auto threadIdHash = stringHash(boost::lexical_cast<std::string>(std::this_thread::get_id()));
|
||||
setSeed(static_cast<int>(threadIdHash * std::time(nullptr)));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user