diff --git a/lib/base/utility.cpp b/lib/base/utility.cpp index 24d5b1b92..0f7d887b1 100644 --- a/lib/base/utility.cpp +++ b/lib/base/utility.cpp @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include @@ -441,8 +442,7 @@ void Utility::Sleep(double timeout) */ String Utility::NewUniqueID(void) { - boost::uuids::uuid u; - return boost::lexical_cast(u); + return boost::lexical_cast(boost::uuids::random_generator()()); } #ifdef _WIN32