--- ray/src/rt/rtmain.c 2005/05/25 04:44:26 2.10 +++ ray/src/rt/rtmain.c 2005/06/15 15:36:52 2.12 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: rtmain.c,v 2.10 2005/05/25 04:44:26 greg Exp $"; +static const char RCSid[] = "$Id: rtmain.c,v 2.12 2005/06/15 15:36:52 greg Exp $"; #endif /* * rtmain.c - main for rtrace per-ray calculation program @@ -7,7 +7,6 @@ static const char RCSid[] = "$Id: rtmain.c,v 2.10 2005 #include "copyright.h" -#include #include #include "platform.h" @@ -229,6 +228,7 @@ main(int argc, char *argv[]) initotypes(); /* initialize urand */ initurand(2048); + srandom(rand_samp ? (long)time(0) : 0L); /* set up signal handling */ sigdie(SIGINT, "Interrupt"); #ifdef SIGHUP @@ -274,12 +274,8 @@ main(int argc, char *argv[]) openheader(); } #endif -#ifdef _WIN32 if (outform != 'a') SET_FILE_BINARY(stdout); - if (octname == NULL) - SET_FILE_BINARY(stdin); -#endif readoct(octname, loadflags, &thescene, NULL); nsceneobjs = nobjects;