mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +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 |
||
---|---|---|
.. | ||
process_model.c | ||
process_model.h | ||
process_single.c | ||
process_standard.c | ||
server.c | ||
service_named_pipe.c | ||
service_stream.c | ||
service_stream.h | ||
service_task.c | ||
service_task.h | ||
service.c | ||
service.h | ||
wscript_build |