summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/os_unix.c3
-rw-r--r--src/version.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index b7da55205d..474d288019 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -7740,7 +7740,10 @@ mch_get_random(char_u *buf, int len)
if (fd == -1)
dev_urandom_state = FAIL;
else if (read(fd, buf, len) == len)
+ {
dev_urandom_state = OK;
+ close(fd);
+ }
else
{
dev_urandom_state = FAIL;
diff --git a/src/version.c b/src/version.c
index 159fe3b814..9cf60326ae 100644
--- a/src/version.c
+++ b/src/version.c
@@ -705,6 +705,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 531,
+/**/
530,
/**/
529,