Replaced read from /dev/random with /dev/urandom; fixed hangs on Ubuntu

This commit is contained in:
starkos 2009-01-09 21:22:57 +00:00
parent 3959037db3
commit ead7af951f
2 changed files with 2 additions and 2 deletions

View File

@ -42,5 +42,5 @@ solution "PremakeTestbox"
end
}
print(os.findlib("Xlib"))
print(os.findlib("hal"))

View File

@ -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)