]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Drop unused squid_random() and unnecessary squid_srandom()
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 8 Feb 2015 09:47:42 +0000 (01:47 -0800)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 8 Feb 2015 09:47:42 +0000 (01:47 -0800)
configure.ac
include/squid.h
src/main.cc

index 2f16710dad2a5447329d09b04eaa9b8fab9ebdf2..5e0bbd7d3b47ca4d69727e70cddbfbac3ecc00cf 100644 (file)
@@ -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 \
index 0a8b8f2f21982101f8f87637ef6a5230e02c747a..344715f345f71b0ed3eb3e60a305e3beff442f0f 100644 (file)
 #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
  */
index 45e20a44f6d55adf80cd06267b36b2ed3485b197..282e4f0dc3a845fff2008a3cff711983e084f026 100644 (file)
@@ -1384,8 +1384,6 @@ SquidMain(int argc, char **argv)
 #endif
 #endif /* HAVE_MALLOPT */
 
-    squid_srandom(time(NULL));
-
     getCurrentTime();
 
     squid_start = current_time;