r1492: Rework our random number generation system.
authorAndrew Bartlett <abartlet@samba.org>
Wed, 14 Jul 2004 04:36:01 +0000 (04:36 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:13 +0000 (10:52 -0500)
commit9d0783bf211dffe58845b36b0669f05bf8bf25b5
tree3a7434e8a13cf736d2deb7268ef7cf3864cf9499
parent8f93b500320d7d4341dfea37fd1f82d02b1ce980
r1492: Rework our random number generation system.

On systems with /dev/urandom, this avoids a change to secrets.tdb for every fork().

For other systems, we now only re-seed after a fork, and on startup.
No need to do it per-operation.  This removes the 'need_reseed'
parameter from generate_random_buffer().

Andrew Bartlett
(This used to be commit 36741d3cf53a7bd17d361251f2bb50851cdb035f)
19 files changed:
source3/auth/auth.c
source3/lib/afs.c
source3/lib/genrand.c
source3/lib/util_uuid.c
source3/libsmb/ntlmssp.c
source3/libsmb/smbencrypt.c
source3/nsswitch/wbinfo.c
source3/nsswitch/winbindd_pam.c
source3/passdb/machine_sid.c
source3/passdb/secrets.c
source3/python/py_winbind.c
source3/rpc_client/cli_netlogon.c
source3/rpc_parse/parse_prs.c
source3/rpc_server/srv_netlog_nt.c
source3/rpc_server/srv_pipe.c
source3/smbd/server.c
source3/torture/torture.c
source3/utils/ntlm_auth.c
source3/wrepld/server.c