diff --git a/libclamav/others.c b/libclamav/others.c index ed5302099..44e8e00bb 100644 --- a/libclamav/others.c +++ b/libclamav/others.c @@ -263,7 +263,7 @@ int cl_init(unsigned int initoptions) cli_rarload(); } gettimeofday(&tv, (struct timezone *) 0); - srand(pid + tv.tv_usec*++pid + clock()); + srand(pid + tv.tv_usec*(pid+1) + clock()); return CL_SUCCESS; }