Replaced read from /dev/random with /dev/urandom; fixed hangs on Ubuntu
This commit is contained in:
parent
3959037db3
commit
ead7af951f
@ -42,5 +42,5 @@ solution "PremakeTestbox"
|
||||
end
|
||||
}
|
||||
|
||||
print(os.findlib("Xlib"))
|
||||
print(os.findlib("hal"))
|
||||
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user