Implement CoCreateGuid using uuid_generate on Unix
authorJan Vorlicek <janvorli@microsoft.com>
Fri, 9 Oct 2015 18:56:43 +0000 (20:56 +0200)
committerJan Vorlicek <janvorli@microsoft.com>
Tue, 13 Oct 2015 13:39:38 +0000 (15:39 +0200)
commitdbd046be21faab7346db55f3dd638162a20f3941
tree656033472290e8f0eaebeb3dc16148235859d8ea
parent2e70585b98e6371aae2d00f3fcf537de0a3cfdab
Implement CoCreateGuid using uuid_generate on Unix

We were generating GUIDs on Unix as random numbers. But that is not
correct since GUIDs have defined structure with bits having specific
meanings. For example, there are four bits that represent the type of
the GUID, which means whether the guid is randomly generated,
name based on SHA1, time based etc.
This change changes the CoCreateGuid to use the uuid_generate function
from the uuid library that should generate well-formed GUIDs on
Linux and OSX and the uuid_create on FreeBSD.
Documentation/building/linux-instructions.md
src/pal/inc/pal.h
src/pal/inc/pal_endian.h
src/pal/inc/rt/palrt.h
src/pal/src/CMakeLists.txt
src/pal/src/config.h.in
src/pal/src/configure.cmake
src/pal/src/misc/miscpalapi.cpp
src/palrt/coguid.cpp