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
1111 - Fix: Missing closing parenthesis in listing 10 (#603 )
1212 - Fix: Tiny improvements to the lambertian::scatter() development (#604 )
1313 - 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 )
1515 - Fix: Listing 28, 30: ` light_shape ` should have default material, not ` 0 ` (#607 )
16+ - Fix: Listing 30: ` mixture_pdf ` needs ` shared_ptr ` arguments (#608 )
1617
1718
1819----------------------------------------------------------------------------------------------------
Original file line number Diff line number Diff line change 13151315 inline double random_double() {
13161316 static std::uniform_real_distribution< double> distribution(0.0, 1.0);
13171317 static std::mt19937 generator;
1318- return generator( distribution);
1318+ return distribution(generator );
13191319 }
13201320 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
13211321 [Listing [random-double-alt]: < kbd> [rtweekend.h]</ kbd> random_double(), alternate implemenation]
You can’t perform that action at this time.
0 commit comments