mirror of
https://github.com/samba-team/samba.git
synced 2025-12-12 12:23:50 +03:00
util.c: Re-seed the crypto random number generator after a fork, so all
smbds started from the same parent won't use the same sequence. Jeremy.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
|
||||
Reference in New Issue
Block a user