summaryrefslogtreecommitdiffstats
path: root/source/utils
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-07-14 04:36:01 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:13 -0500
commit36741d3cf53a7bd17d361251f2bb50851cdb035f (patch)
treeb949c57ff12b3854b74f4e75ee1d6d469eb09da0 /source/utils
parent6d594d5bb119b6bc3f4c7699752666ac24d04745 (diff)
downloadsamba-36741d3cf53a7bd17d361251f2bb50851cdb035f.tar.gz
samba-36741d3cf53a7bd17d361251f2bb50851cdb035f.tar.xz
samba-36741d3cf53a7bd17d361251f2bb50851cdb035f.zip
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
Diffstat (limited to 'source/utils')
-rw-r--r--source/utils/ntlm_auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/utils/ntlm_auth.c b/source/utils/ntlm_auth.c
index 39dcd9993d0..fd8424065c8 100644
--- a/source/utils/ntlm_auth.c
+++ b/source/utils/ntlm_auth.c
@@ -181,7 +181,7 @@ DATA_BLOB get_challenge(void)
chal = data_blob(NULL, 8);
- generate_random_buffer(chal.data, chal.length, False);
+ generate_random_buffer(chal.data, chal.length);
return chal;
}