1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/source4/libcli/util
Andrew Bartlett f607197054 r1498: (merge from 3.0)
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().

This also requires that we start the secrets subsystem, as that is
where the reseed value is stored, for systems without /dev/urandom.

In order to aviod identical streams in forked children, the random
state is re-initialised after the fork(), at the same point were we do
that to the tdbs.

Andrew Bartlett
(This used to be commit b97d3cb2ef)
2007-10-10 12:57:35 -05:00
..
asn1.c r1352: Add a 'peek' function to our ASN1 code, so we can safely perform the 2007-10-10 12:56:52 -05:00
clierror.c r890: convert samba4 to use [u]int8_t instead of [u]int8 2007-10-10 12:56:16 -05:00
cliutil.c r23: get rid of def_finfo 2007-10-10 12:50:33 -05:00
dom_sid.c r1342: When fixing _lsa_lookupsids in samba3 I wanted to find out the number of SIDs 2007-10-10 12:56:51 -05:00
doserr.c * add another WERR err code 2003-11-17 11:55:56 +00:00
errormap.c r898: - remove some unused macros 2007-10-10 12:56:18 -05:00
nterr.c r975: slight improvemet to nt_errstr(), still needs to be fixed properly 2007-10-10 12:56:24 -05:00
smbdes.c r1268: varient -> variant 2007-10-10 12:56:46 -05:00
smbencrypt.c r1498: (merge from 3.0) 2007-10-10 12:57:35 -05:00
smberr.c r890: convert samba4 to use [u]int8_t instead of [u]int8 2007-10-10 12:56:16 -05:00