| author | |
| committer | |
| log | 798720224341820da8ec756a20a93a33cc41835e |
| tree | b430fb610bf1218e75755daee877a248df69ae19 |
| parent | 266b2de1505ed64f05260c7057b9b563a2161e48 |
1 files changed, 1 insertions(+), 1 deletions(-)
src/os.cpp+1-1| ... | ... | @@ -1350,7 +1350,7 @@ static void init_rand() { |
| 1350 | 1350 | zig_panic("unable to open /dev/urandom"); |
| 1351 | 1351 | } |
| 1352 | 1352 | char bytes[sizeof(unsigned)]; |
| 1353 | size_t amt_read; | |
| 1353 | ssize_t amt_read; | |
| 1354 | 1354 | while ((amt_read = read(fd, bytes, sizeof(unsigned))) == -1) { |
| 1355 | 1355 | if (errno == EINTR) continue; |
| 1356 | 1356 | zig_panic("unable to read /dev/urandom"); |