| ... | @@ -1350,7 +1350,7 @@ static void init_rand() { | ... | @@ -1350,7 +1350,7 @@ static void init_rand() { |
| 1350 | zig_panic("unable to open /dev/urandom"); | 1350 | zig_panic("unable to open /dev/urandom"); |
| 1351 | } | 1351 | } |
| 1352 | char bytes[sizeof(unsigned)]; | 1352 | char bytes[sizeof(unsigned)]; |
| 1353 | size_t amt_read; | 1353 | ssize_t amt_read; |
| 1354 | while ((amt_read = read(fd, bytes, sizeof(unsigned))) == -1) { | 1354 | while ((amt_read = read(fd, bytes, sizeof(unsigned))) == -1) { |
| 1355 | if (errno == EINTR) continue; | 1355 | if (errno == EINTR) continue; |
| 1356 | zig_panic("unable to read /dev/urandom"); | 1356 | zig_panic("unable to read /dev/urandom"); |