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

Comparing ray/src/common/urand.c (file contents):
Revision 2.8 by greg, Fri May 14 20:49:13 2004 UTC vs.
Revision 2.9 by greg, Sun May 16 14:49:42 2004 UTC

# Line 43 | Line 43 | int  size;
43                  eputs("out of memory in initurand\n");
44                  quit(1);
45          }
46 <        urperm[0] = (random() & 0x4000) != 0;
46 >        urperm[0] = 0;
47          for (n = 1, offset = 1; n <= order; n++, offset <<= 1)
48                  for (i = offset; i--; ) {
49                          urperm[i+offset] = urperm[i] <<= 1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines