mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
e73ccc06ef
This removes quite a bit of code. All reasonable systems have /dev/urandom these days. Linux, Solaris and the BSDs do. In case we find a system without /dev/urandom, we will have to go hunting in other libraries. The main reason for this is speed: On Ubuntu 14.04 doing direct reads from /dev/urandom is 2-3 times faster than our md4 based code. On virtualized FreeBSD 10 the difference is even larger. My first approach was to use fopen/fread. It was even faster, but less than twice as fast. So I thought we could save the additional complexity when having to deal with throwing away buffers when forking and the additional memory footprint per process. With this simple generate_random_buffer it will be easier to adapt new syscalls to get randomness. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Oct 13 04:25:39 CEST 2015 on sn-devel-104 |
||
---|---|---|
.. | ||
ABI | ||
account_pol.c | ||
login_cache.c | ||
lookup_sid.c | ||
lookup_sid.h | ||
machine_account_secrets.c | ||
machine_sid.c | ||
machine_sid.h | ||
passdb.c | ||
pdb_compat.c | ||
pdb_get_set.c | ||
pdb_interface.c | ||
pdb_ipa.c | ||
pdb_ipa.h | ||
pdb_ldap_schema.c | ||
pdb_ldap_schema.h | ||
pdb_ldap_util.c | ||
pdb_ldap_util.h | ||
pdb_ldap.c | ||
pdb_ldap.h | ||
pdb_nds.c | ||
pdb_nds.h | ||
pdb_samba_dsdb.c | ||
pdb_secrets.c | ||
pdb_secrets.h | ||
pdb_smbpasswd.c | ||
pdb_smbpasswd.h | ||
pdb_tdb.c | ||
pdb_tdb.h | ||
pdb_unixid.c | ||
pdb_util.c | ||
pdb_wbc_sam.c | ||
pdb_wbc_sam.h | ||
py_passdb.c | ||
secrets_lsa.c | ||
secrets.c | ||
wscript_build |