diff --git a/samples/project/premake4.lua b/samples/project/premake4.lua index 2cd9f317..f97d16ff 100644 --- a/samples/project/premake4.lua +++ b/samples/project/premake4.lua @@ -42,5 +42,5 @@ solution "PremakeTestbox" end } -print(os.findlib("Xlib")) +print(os.findlib("hal")) diff --git a/src/host/os_uuid.c b/src/host/os_uuid.c index 3a925992..c2521794 100644 --- a/src/host/os_uuid.c +++ b/src/host/os_uuid.c @@ -26,7 +26,7 @@ int os_uuid(lua_State* L) int result; /* not sure how to get a UUID here, so I fake it */ - FILE* rnd = fopen("/dev/random", "rb"); + FILE* rnd = fopen("/dev/urandom", "rb"); result = fread(bytes, 16, 1, rnd); fclose(rnd); if (!result)