summaryrefslogtreecommitdiff
path: root/www/mnogosearch/files/patch-ac
blob: 1fbce5bd52efb82d78cb9ea3f438b35e446ecfc5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/search.c.bak	Tue May 15 13:08:14 2001
+++ src/search.c	Fri May 18 16:22:44 2001
@@ -1239,7 +1239,7 @@
 int i;
 time_t tclock;
 	tclock=time(0);
-	srand((unsigned)tclock);
+	srand((unsigned)(tclock^(getpid()<<16)));
 	for(i=0;i<MAXRANDOM;i++)
 		Randoms[i]=0;
 }