diff options
author | ache <ache@FreeBSD.org> | 2001-04-23 17:55:03 +0800 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2001-04-23 17:55:03 +0800 |
commit | 46b4741541f95a7e85bbe2a5d625b01b1ba61ea5 (patch) | |
tree | d9519ef044b1dca59bd2d25a9e5ff3816391637d | |
parent | fc6cf11279b1a73b6fe3f984609d94ab61cca691 (diff) | |
download | freebsd-ports-gnome-46b4741541f95a7e85bbe2a5d625b01b1ba61ea5.tar.gz freebsd-ports-gnome-46b4741541f95a7e85bbe2a5d625b01b1ba61ea5.tar.zst freebsd-ports-gnome-46b4741541f95a7e85bbe2a5d625b01b1ba61ea5.zip |
rand-related fixes
-rw-r--r-- | www/mnoGoSearch-current/Makefile | 2 | ||||
-rw-r--r-- | www/mnoGoSearch-current/files/patch-ac | 22 | ||||
-rw-r--r-- | www/mnogosearch/Makefile | 2 | ||||
-rw-r--r-- | www/mnogosearch/files/patch-ac | 22 | ||||
-rw-r--r-- | www/mnogosearch31/Makefile | 2 | ||||
-rw-r--r-- | www/mnogosearch31/files/patch-ac | 22 |
6 files changed, 63 insertions, 9 deletions
diff --git a/www/mnoGoSearch-current/Makefile b/www/mnoGoSearch-current/Makefile index 656faaa59d99..2621fca84d0d 100644 --- a/www/mnoGoSearch-current/Makefile +++ b/www/mnoGoSearch-current/Makefile @@ -7,7 +7,7 @@ PORTNAME= mnogosearch PORTVERSION= 3.1.12 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= www databases MASTER_SITES= http://search.mnogo.ru/Download/ diff --git a/www/mnoGoSearch-current/files/patch-ac b/www/mnoGoSearch-current/files/patch-ac index 68f8816a275e..f1cd4ec1ab66 100644 --- a/www/mnoGoSearch-current/files/patch-ac +++ b/www/mnoGoSearch-current/files/patch-ac @@ -1,5 +1,23 @@ ---- src/search.c.old Wed Feb 28 15:28:10 2001 -+++ src/search.c Thu Apr 19 18:02:10 2001 +--- src/search.c.orig Wed Feb 28 15:28:10 2001 ++++ src/search.c Mon Apr 23 06:46:50 2001 +@@ -431,7 +431,7 @@ + s=str+1; + while((*s)&&(isdigit(*s)))s++; + j=atoi(UdmTrim(s,"= \t\r\n")); +- if((i>0)&&(i<MAXRANDOM)){ ++ if((i>=0)&&(i<MAXRANDOM)){ + frand=rand(); + frand=frand/RAND_MAX*j; + Randoms[i]=frand; +@@ -1225,7 +1225,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; + } @@ -1269,7 +1269,8 @@ strcpy(template,env); diff --git a/www/mnogosearch/Makefile b/www/mnogosearch/Makefile index 656faaa59d99..2621fca84d0d 100644 --- a/www/mnogosearch/Makefile +++ b/www/mnogosearch/Makefile @@ -7,7 +7,7 @@ PORTNAME= mnogosearch PORTVERSION= 3.1.12 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= www databases MASTER_SITES= http://search.mnogo.ru/Download/ diff --git a/www/mnogosearch/files/patch-ac b/www/mnogosearch/files/patch-ac index 68f8816a275e..f1cd4ec1ab66 100644 --- a/www/mnogosearch/files/patch-ac +++ b/www/mnogosearch/files/patch-ac @@ -1,5 +1,23 @@ ---- src/search.c.old Wed Feb 28 15:28:10 2001 -+++ src/search.c Thu Apr 19 18:02:10 2001 +--- src/search.c.orig Wed Feb 28 15:28:10 2001 ++++ src/search.c Mon Apr 23 06:46:50 2001 +@@ -431,7 +431,7 @@ + s=str+1; + while((*s)&&(isdigit(*s)))s++; + j=atoi(UdmTrim(s,"= \t\r\n")); +- if((i>0)&&(i<MAXRANDOM)){ ++ if((i>=0)&&(i<MAXRANDOM)){ + frand=rand(); + frand=frand/RAND_MAX*j; + Randoms[i]=frand; +@@ -1225,7 +1225,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; + } @@ -1269,7 +1269,8 @@ strcpy(template,env); diff --git a/www/mnogosearch31/Makefile b/www/mnogosearch31/Makefile index 656faaa59d99..2621fca84d0d 100644 --- a/www/mnogosearch31/Makefile +++ b/www/mnogosearch31/Makefile @@ -7,7 +7,7 @@ PORTNAME= mnogosearch PORTVERSION= 3.1.12 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= www databases MASTER_SITES= http://search.mnogo.ru/Download/ diff --git a/www/mnogosearch31/files/patch-ac b/www/mnogosearch31/files/patch-ac index 68f8816a275e..f1cd4ec1ab66 100644 --- a/www/mnogosearch31/files/patch-ac +++ b/www/mnogosearch31/files/patch-ac @@ -1,5 +1,23 @@ ---- src/search.c.old Wed Feb 28 15:28:10 2001 -+++ src/search.c Thu Apr 19 18:02:10 2001 +--- src/search.c.orig Wed Feb 28 15:28:10 2001 ++++ src/search.c Mon Apr 23 06:46:50 2001 +@@ -431,7 +431,7 @@ + s=str+1; + while((*s)&&(isdigit(*s)))s++; + j=atoi(UdmTrim(s,"= \t\r\n")); +- if((i>0)&&(i<MAXRANDOM)){ ++ if((i>=0)&&(i<MAXRANDOM)){ + frand=rand(); + frand=frand/RAND_MAX*j; + Randoms[i]=frand; +@@ -1225,7 +1225,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; + } @@ -1269,7 +1269,8 @@ strcpy(template,env); |