summaryrefslogtreecommitdiff
path: root/random/random-fips.c
diff options
context:
space:
mode:
Diffstat (limited to 'random/random-fips.c')
-rw-r--r--random/random-fips.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/random/random-fips.c b/random/random-fips.c
index c8100a21..6ee52f10 100644
--- a/random/random-fips.c
+++ b/random/random-fips.c
@@ -780,6 +780,19 @@ _gcry_rngfips_initialize (int full)
}
+/* Try to close the FDs of the random gather module. This is
+ currently only implemented for rndlinux. */
+void
+_gcry_rngfips_close_fds (void)
+{
+ lock_rng ();
+#if USE_RNDLINUX
+ _gcry_rndlinux_gather_random (NULL, 0, 0, 0);
+#endif
+ unlock_rng ();
+}
+
+
/* Print some statistics about the RNG. */
void
_gcry_rngfips_dump_stats (void)