diff options
author | starkos <none@none> | 2009-01-10 00:22:57 +0300 |
---|---|---|
committer | starkos <none@none> | 2009-01-10 00:22:57 +0300 |
commit | 564a868b80ad3a5c1f8cbc643bc1f580e9638010 (patch) | |
tree | 3c04be7b2c7132c55bd1e023e91e929cc46f6194 | |
parent | 8790bc4c5e4c0f2a8b90be09391fa563398dc935 (diff) |
Replaced read from /dev/random with /dev/urandom; fixed hangs on Ubuntu
-rw-r--r-- | samples/project/premake4.lua | 2 | ||||
-rw-r--r-- | src/host/os_uuid.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/samples/project/premake4.lua b/samples/project/premake4.lua index 2cd9f31..f97d16f 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 3a92599..c252179 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) |