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.1 by greg, Tue Nov 12 16:55:47 1991 UTC vs.
Revision 2.2 by greg, Sat Sep 5 13:40:55 1992 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1991 Regents of the University of California */
1 > /* Copyright (c) 1992 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 14 | Line 14 | static char SCCSid[] = "$SunId$ LBL";
14  
15   extern char  *malloc();
16  
17 < short  *urperm;         /* urand() permutation */
17 > short  *urperm = NULL;  /* urand() permutation */
18   int  urmask;            /* bits used in permutation */
19  
20  
# Line 24 | Line 24 | int  size;
24          int  order, n;
25          register int  i, offset;
26  
27 +        if (urperm != NULL)
28 +                free((char *)urperm);
29          size--;
30          for (i = 1; size >>= 1; i++)
31                  ;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines