From: Amos Jeffries Date: Sun, 8 Feb 2015 09:47:42 +0000 (-0800) Subject: Drop unused squid_random() and unnecessary squid_srandom() X-Git-Tag: merge-candidate-3-v1~109^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=568028c692269f699ae8366ebbf69ce591462c44;p=thirdparty%2Fsquid.git Drop unused squid_random() and unnecessary squid_srandom() --- diff --git a/configure.ac b/configure.ac index 2f16710dad..5e0bbd7d3b 100644 --- a/configure.ac +++ b/configure.ac @@ -3328,7 +3328,6 @@ AC_CHECK_FUNCS(\ getspnam \ gettimeofday \ glob \ - lrand48 \ mallocblksize \ mallopt \ memcpy \ @@ -3345,7 +3344,6 @@ AC_CHECK_FUNCS(\ pthread_setschedparam \ pthread_sigmask \ putenv \ - random \ regcomp \ regexec \ regfree \ @@ -3362,8 +3360,6 @@ AC_CHECK_FUNCS(\ sigaction \ snprintf \ socketpair \ - srand48 \ - srandom \ sysconf \ syslog \ timegm \ diff --git a/include/squid.h b/include/squid.h index 0a8b8f2f21..344715f345 100644 --- a/include/squid.h +++ b/include/squid.h @@ -66,17 +66,6 @@ #define SQUID_UDP_SO_RCVBUF SQUID_DETECT_UDP_SO_RCVBUF #endif -#if HAVE_RANDOM -#define squid_random random -#define squid_srandom srandom -#elif HAVE_LRAND48 -#define squid_random lrand48 -#define squid_srandom srand48 -#else -#define squid_random rand -#define squid_srandom srand -#endif - /* * Determine if this is a leak check build or standard */ diff --git a/src/main.cc b/src/main.cc index 45e20a44f6..282e4f0dc3 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1384,8 +1384,6 @@ SquidMain(int argc, char **argv) #endif #endif /* HAVE_MALLOPT */ - squid_srandom(time(NULL)); - getCurrentTime(); squid_start = current_time;