blob: 563286db5d4cb1db3add2d470d69b262dc300a7d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
--- earthapp.cpp.orig Sat Feb 24 10:13:10 2001
+++ earthapp.cpp Sat Feb 24 10:13:29 2001
@@ -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.;
}
/* ------------------------------------------------------------------------*/
--- main.cpp.orig Tue Jul 13 10:32:55 1999
+++ main.cpp Sat Feb 24 10:14:56 2001
@@ -24,6 +24,7 @@
*/
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <qstring.h>
#include "config.h"
@@ -36,6 +37,8 @@
int main(int argc, char **argv)
{
EarthApplication myApp(argc, argv);
+
+ srandomdev();
#ifdef WITH_QIMAGEIO
qInitImageIO();
|