Skip to content

Commit 92869ce

Browse files
author
Christian Hergert
committed
client: close urandom fd after seeding rand.
1 parent 3168439 commit 92869ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test-mongoc-client.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,8 @@ seed_rand (void)
404404

405405
fprintf (stderr, "srand(%u)\n", seed);
406406
srand (seed);
407+
408+
close (fd);
407409
}
408410

409411

0 commit comments

Comments
 (0)