ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/rpmain.c
(Generate patch)

Comparing ray/src/rt/rpmain.c (file contents):
Revision 2.9 by greg, Tue Jan 18 00:33:16 2005 UTC vs.
Revision 2.10 by greg, Wed Jun 15 15:36:52 2005 UTC

# Line 7 | Line 7 | static const char      RCSid[] = "$Id$";
7  
8   #include "copyright.h"
9  
10 < #include  <sys/types.h>
10 > #include  <time.h>
11   #include  <signal.h>
12  
13   #include  "platform.h"
# Line 227 | Line 227 | main(int  argc, char  *argv[])
227          initotypes();
228                                          /* initialize urand */
229          initurand(2048);
230 +        srandom(rand_samp ? (long)time(0) : 0L);
231                                          /* set up signal handling */
232          sigdie(SIGINT, "Interrupt");
233   #ifdef SIGHUP

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines