Updating random_color generation.

This commit is contained in:
Patrick Shriwise 2018-11-02 22:18:26 -05:00
parent 9ed73c3c96
commit 148c588a39

View file

@ -968,11 +968,7 @@ voxel_finalize(hid_t dspace, hid_t dset, hid_t memspace)
}
RGBColor random_color() {
RGBColor rgb;
rgb[RED] = int(prn()*255);
rgb[GREEN] = int(prn()*255);
rgb[BLUE] = int(prn()*255);
return rgb;
return {int(prn()*255), int(prn()*255), int(prn()*255)};
}
} // namespace openmc