From a6887b1ae9051a50739eabe855e4c8473a4ebcc5 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 14 Dec 2017 18:48:58 +0100 Subject: [PATCH] Add missing initializer in Utility::NewUniqueID() --- lib/base/utility.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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