Merge "Utils: correctly handle read() errors in ReadRandomBytes()" am: a2bd436594 am: 038a274e8a
am: e5296cc04d

Change-Id: I0f81be91efee4512510d9e0422b96d8e75951cd4
diff --git a/Utils.cpp b/Utils.cpp
index 341c927..f9b61b6 100644
--- a/Utils.cpp
+++ b/Utils.cpp
@@ -377,7 +377,7 @@
         return -errno;
     }
 
-    size_t n;
+    ssize_t n;
     while ((n = TEMP_FAILURE_RETRY(read(fd, &buf[0], bytes))) > 0) {
         bytes -= n;
         buf += n;