summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/genie/src/host/os_uuid.c
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/genie/src/host/os_uuid.c')
-rw-r--r--3rdparty/genie/src/host/os_uuid.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/3rdparty/genie/src/host/os_uuid.c b/3rdparty/genie/src/host/os_uuid.c
index 3528c479597..832c3e975c7 100644
--- a/3rdparty/genie/src/host/os_uuid.c
+++ b/3rdparty/genie/src/host/os_uuid.c
@@ -49,6 +49,10 @@ int os_uuid(lua_State* L)
{
#if PLATFORM_WINDOWS
CoCreateGuid((GUID*)bytes);
+#elif PLATFORM_OS2
+ int i;
+ for (i = 0; i < 16; i++)
+ bytes[i] = (unsigned char)gethrtime();
#else
int result;