diff --git a/modules/FadingRects/FadingRects.cpp b/modules/FadingRects/FadingRects.cpp index 53f22fc..aef6f53 100644 --- a/modules/FadingRects/FadingRects.cpp +++ b/modules/FadingRects/FadingRects.cpp @@ -8,6 +8,7 @@ #include "FadingRects.hpp" #include +#include #include #include #include @@ -153,7 +154,6 @@ Color FadingRects::next_color() { void FadingRects::setup(cairo_t* context, const cairo_rectangle_t& rect) { ScreensaverPlugin::setup(context, rect); - std::uniform_real_distribution dist {0.0, 360.0}; - _hue = dist(_eng); + _hue = sc::random::double_between(0.0, 360.0); _rects.clear(); }