summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index e6bf74e56e..d8249958af 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -3729,6 +3729,16 @@ void reset_globals_after_fork(void)
{
global_client_name_done = False;
global_client_addr_done = False;
+
+ /*
+ * Re-seed the random crypto generator, so all smbd's
+ * started from the same parent won't generate the same
+ * sequence.
+ */
+ {
+ char dummy;
+ generate_random_buffer( &dummy, 1, True);
+ }
}
/*******************************************************************