mirror of https://github.com/Icinga/icinga2.git
Merge pull request #5865 from Icinga/fix/uuid
Add missing initializer in Utility::NewUniqueID()
This commit is contained in:
commit
20d7221dfe
|
@ -34,6 +34,7 @@
|
||||||
#include <boost/algorithm/string/trim.hpp>
|
#include <boost/algorithm/string/trim.hpp>
|
||||||
#include <boost/algorithm/string/replace.hpp>
|
#include <boost/algorithm/string/replace.hpp>
|
||||||
#include <boost/uuid/uuid_io.hpp>
|
#include <boost/uuid/uuid_io.hpp>
|
||||||
|
#include <boost/uuid/uuid_generators.hpp>
|
||||||
#include <ios>
|
#include <ios>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
@ -441,8 +442,7 @@ void Utility::Sleep(double timeout)
|
||||||
*/
|
*/
|
||||||
String Utility::NewUniqueID(void)
|
String Utility::NewUniqueID(void)
|
||||||
{
|
{
|
||||||
boost::uuids::uuid u;
|
return boost::lexical_cast<std::string>(boost::uuids::random_generator()());
|
||||||
return boost::lexical_cast<std::string>(u);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
Loading…
Reference in New Issue