File nrpe-more_random.patch of Package nrpe.27675

Index: src/utils.c
===================================================================
--- src/utils.c.orig
+++ src/utils.c
@@ -107,7 +107,7 @@ void randomize_buffer(char *buffer,int b
 
 	/* else fallback to using the current time as the seed */
 	else
-		seed=(int)time(NULL);
+		seed=(int)time(NULL)*311-getpid()*359+getppid()*382;
 
 	srand(seed);
 	for(x=0;x<buffer_size;x++)
openSUSE Build Service is sponsored by