diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-07-14 04:36:01 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2004-07-14 04:36:01 +0000 |
commit | 41b21b0fd1e2640671f4a2f5c45905e16fcfce9a (patch) | |
tree | 595c696dc14b89587f3da53d8ce968e4c7636c2b /source/python | |
parent | ad19c9501a1647b13ade977e97eecdfd113b9795 (diff) | |
download | samba-41b21b0fd1e2640671f4a2f5c45905e16fcfce9a.tar.gz samba-41b21b0fd1e2640671f4a2f5c45905e16fcfce9a.tar.xz samba-41b21b0fd1e2640671f4a2f5c45905e16fcfce9a.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/python')
-rw-r--r-- | source/python/py_winbind.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/python/py_winbind.c b/source/python/py_winbind.c index 130f78d7e12..7256f77002b 100644 --- a/source/python/py_winbind.c +++ b/source/python/py_winbind.c @@ -432,7 +432,7 @@ static PyObject *py_auth_crap(PyObject *self, PyObject *args, PyObject *kw) return NULL; } - generate_random_buffer(request.data.auth_crap.chal, 8, False); + generate_random_buffer(request.data.auth_crap.chal, 8); if (use_lm_hash) { SMBencrypt((uchar *)password, request.data.auth_crap.chal, @@ -481,7 +481,7 @@ static PyObject *py_auth_smbd(PyObject *self, PyObject *args, PyObject *kw) return NULL; } - generate_random_buffer(request.data.smbd_auth_crap.chal, 8, False); + generate_random_buffer(request.data.smbd_auth_crap.chal, 8); if (use_lm_hash) { SMBencrypt((uchar *)password, |