Skip to content

Commit

Permalink
small change
Browse files Browse the repository at this point in the history
  • Loading branch information
ww-rm committed Apr 14, 2024
1 parent 9af767e commit cfede91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gmalglib/core/random.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ static int _LinuxRandomProc(void* rand_obj, uint64_t bytes_len, uint8_t* bytes)
n = read(fd, bytes, chunk);
} while (n < 0 && errno == EINTR);

if (n <= 0) {
if (n <= 0)
{
close(fd);
return 0;
}
Expand Down

0 comments on commit cfede91

Please sign in to comment.