File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,9 @@ Change Log -- Ray Tracing in One Weekend
11
11
- Fix: Missing closing parenthesis in listing 10 (#603 )
12
12
- Fix: Tiny improvements to the lambertian::scatter() development (#604 )
13
13
- Fix: Correct geometry type and unit vector method in ` ray_color() ` , listing 20 (#606 )
14
- - Fix: Listing 30, ` mixture_pdf ` needs ` shared_ptr ` arguments (#608 )
14
+ - Fix: Listing 26: alternate ` random_double() ` switched ` distribution ` , ` generator ` (#621 )
15
15
- Fix: Listing 28, 30: ` light_shape ` should have default material, not ` 0 ` (#607 )
16
+ - Fix: Listing 30: ` mixture_pdf ` needs ` shared_ptr ` arguments (#608 )
16
17
17
18
18
19
----------------------------------------------------------------------------------------------------
Original file line number Diff line number Diff line change 1315
1315
inline double random_double() {
1316
1316
static std::uniform_real_distribution< double> distribution(0.0, 1.0);
1317
1317
static std::mt19937 generator;
1318
- return generator( distribution);
1318
+ return distribution(generator );
1319
1319
}
1320
1320
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1321
1321
[Listing [random-double-alt]: < kbd> [rtweekend.h]</ kbd> random_double(), alternate implemenation]
You can’t perform that action at this time.
0 commit comments