$NetBSD: patch-ac,v 1.1 2000/04/03 03:24:48 hubertf Exp $

--- earthapp.cpp.orig	Mon Apr  3 05:07:30 2000
+++ earthapp.cpp	Mon Apr  3 05:08:24 2000
@@ -371,7 +371,7 @@
   if(strncmp(argv()[i], "random", 6) == 0)
   {
     p_type = RANDOM;
-    srand((int)time(NULL) + (int)getpid());
+    srandom((int)time(NULL) + (int)getpid());
     return;
   }
   else if(strncmp(argv()[i], "fixed", 5) == 0)
@@ -937,8 +937,8 @@
 
 void EarthApplication::randomPosition()
 {
-  view_lat = ((rand()%30001)/30000.)*180. - 90.;
-  view_long = ((rand()%30001)/30000.)*360. - 180.;
+  view_lat = ((random()%30001)/30000.)*180. - 90.;
+  view_long = ((random()%30001)/30000.)*360. - 180.;
 }
 
 /* ------------------------------------------------------------------------*/