(new) [_WIN32]: Rely on misc.h to provide BSD random functions.

This commit is contained in:
Ron Koenderink 2004-12-30 13:57:04 +00:00
parent 7a95982a21
commit 667b137216

View file

@ -65,7 +65,6 @@ new(void)
struct boundstr newrealms;
struct range absrealm;
natid num;
time_t now;
coord x, y;
int i;
s_char *p;
@ -104,12 +103,7 @@ new(void)
return RET_SYN;
}
} else {
(void)time(&now);
#if !defined(_WIN32)
srandom(now);
#else
srand(now);
#endif
srandom(time(NULL));
for (i = 0; i < 300 && !player->aborted; i++) {
/* Both x and y should be either odd or even */
x = (random() % WORLD_X) - (WORLD_X / 2);