git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b8f5ae
)
util.c: Re-seed the crypto random number generator after a fork, so all
author
Jeremy Allison
<jra@samba.org>
Fri, 15 May 1998 00:39:46 +0000
(
00:39
+0000)
committer
Jeremy Allison
<jra@samba.org>
Fri, 15 May 1998 00:39:46 +0000
(
00:39
+0000)
smbds started from the same parent won't use the same sequence.
Jeremy.
source/lib/util.c
patch
|
blob
|
history
diff --git
a/source/lib/util.c
b/source/lib/util.c
index e6bf74e56ed15617c08e291a1695abd4add7a51e..d8249958af359fb7a141f7b4ae02a70eb9c87571 100644
(file)
--- a/
source/lib/util.c
+++ b/
source/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);
+ }
}
/*******************************************************************