// ************************************************************************** // * This file is part of the FreeFileSync project. It is distributed under * // * GNU General Public License: http://www.gnu.org/licenses/gpl.html * // * Copyright (C) 2008-2011 ZenJu (zhnmju123 AT gmx.de) * // ************************************************************************** // #include "guid.h" #include //boost really should clean a bit up... #ifdef __MINGW32__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wshadow" #endif #include #ifdef __MINGW32__ #pragma GCC diagnostic pop #endif std::string util::generateGUID() //creates a 16 byte GUID { boost::uuids::uuid nativeRep = boost::uuids::random_generator()(); return std::string(nativeRep.begin(), nativeRep.end()); }