ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/random.h
(Generate patch)

Comparing ray/src/common/random.h (file contents):
Revision 2.15 by greg, Mon Jun 13 20:07:56 2005 UTC vs.
Revision 2.16 by greg, Wed Apr 5 06:22:56 2006 UTC

# Line 41 | Line 41 | extern double  drand48();
41   extern unsigned short   *urperm;
42   extern int      urmask;
43  
44 < #define  urand(i)       ((urperm[(i)&urmask]+frandom())/(urmask+1))
44 > #define  urand(i)       (urmask ? ((urperm[(i)&urmask]+frandom())/(urmask+1)) \
45 >                                : frandom())
46  
47   extern int      initurand(int size);
48  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines