/* Copyright 1999-2008, Felspar Co Ltd. http://fost.3.felspar.com/ Distributed under the Boost Software License, Version 1.0. See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt */ #include fostlib::string fostlib::guid() { uuid_t guid; uuid_generate( guid ); char guid_str[ 37 ]; uuid_unparse( guid, guid_str ); return string( guid_str ); }