Diff of /uuid.c [546b12] .. [a60601] Maximize Restore

  Switch to side-by-side view

--- a/uuid.c
+++ b/uuid.c
@@ -102,7 +102,8 @@
 	i = open("/dev/urandom", O_RDONLY);
 	if(i >= 0)
 	{
-		if(read(i, buf, size));
+		if (read(i, buf, size) == -1)
+			DPRINTF(E_MAXDEBUG, L_GENERAL, "Failed to read random bytes\n");
 		close(i);
 	}
 	/* Paranoia. /dev/urandom may be missing.