/* * Secure X Message Passing Library v2 implementation. * (c) Askele Group 2013-2015 * (c) Alexander Vdolainen 2013-2015 * * libsxmp is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation, either version 2.1 of the License, or * (at your option) any later version. * * libsxmp is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see ."; * */ #include #include #include #include #include #include #include #include #ifdef WIN32 #include #include #include #else #include #include #include #include #endif #include #ifdef WIN32 #define UUID_T_LENGTH 16 #ifdef uuid_t #undef uuid_t #endif typedef unsigned char uuid_t[16]; void uuid_generate_random(uuid_t out){ int i,a=0; LARGE_INTEGER frequency,t1; long int d; for(i=0;i