Now using libscnumerics for random numbers
This commit is contained in:
parent
a45a8aa8df
commit
3937dc1c37
@ -8,6 +8,7 @@
|
||||
|
||||
#include "FadingRects.hpp"
|
||||
#include <libscscreensaver.hpp>
|
||||
#include <libscnumerics.hpp>
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
#include <iomanip>
|
||||
@ -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<double> dist {0.0, 360.0};
|
||||
_hue = dist(_eng);
|
||||
_hue = sc::random::double_between(0.0, 360.0);
|
||||
_rects.clear();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user