diff options
Diffstat (limited to 'Python/random.c')
-rw-r--r-- | Python/random.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/random.c b/Python/random.c index 511070a..6fdce64 100644 --- a/Python/random.c +++ b/Python/random.c @@ -331,6 +331,7 @@ dev_urandom(char *buffer, Py_ssize_t size, int raise) if (n <= 0) { /* stop on error or if read(size) returned 0 */ + close(fd); return -1; } |