| # | Line 1 | Line 1 | |
|---|---|---|
| 1 | < | /* Copyright (c) 1991 Regents of the University of California */ |
| 1 | > | /* Copyright (c) 1997 Silicon Graphics, Inc. */ |
| 2 | ||
| 3 | #ifndef lint | |
| 4 | < | static char SCCSid[] = "$SunId$ LBL"; |
| 4 | > | static char SCCSid[] = "$SunId$ SGI"; |
| 5 | #endif | |
| 6 | ||
| 7 | + | #include "random.h" |
| 8 | + | |
| 9 | /* | |
| 10 | * Binary space partitioning curve for multidimensional sampling. | |
| 11 | * | |
| # | Line 33 | Line 35 | double r; /* 1-dimensional sample [0,1) */ | |
| 35 | } | |
| 36 | i = n; | |
| 37 | while (i-- > 0) | |
| 38 | < | t[i] = 1./256. * ti[i]; |
| 38 | > | t[i] = 1./256. * (ti[i] + frandom()); |
| 39 | } | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |