blob: 0cb5d5db1de99b511d7a70be080b347333c961f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$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.;
}
/* ------------------------------------------------------------------------*/
|