Mercurial > hg > orthanc-wsi
diff Resources/Orthanc/Core/SystemToolbox.cpp @ 136:0a1443204818
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 10 Apr 2018 07:24:24 +0200 |
parents | 55e9dde3faee |
children |
line wrap: on
line diff
--- a/Resources/Orthanc/Core/SystemToolbox.cpp Mon Mar 26 11:04:50 2018 +0200 +++ b/Resources/Orthanc/Core/SystemToolbox.cpp Tue Apr 10 07:24:24 2018 +0200 @@ -62,19 +62,6 @@ #endif -// Inclusions for UUID -// http://stackoverflow.com/a/1626302 - -extern "C" -{ -#if defined(_WIN32) -# include <rpc.h> -#else -# include <uuid/uuid.h> -#endif -} - - #include "Logging.h" #include "OrthancException.h" #include "Toolbox.h" @@ -539,28 +526,6 @@ } - std::string SystemToolbox::GenerateUuid() - { -#ifdef WIN32 - UUID uuid; - UuidCreate ( &uuid ); - - unsigned char * str; - UuidToStringA ( &uuid, &str ); - - std::string s( ( char* ) str ); - - RpcStringFreeA ( &str ); -#else - uuid_t uuid; - uuid_generate_random ( uuid ); - char s[37]; - uuid_unparse ( uuid, s ); -#endif - return s; - } - - static boost::posix_time::ptime GetNow(bool utc) { if (utc)