diff options
author | David Robillard <d@drobilla.net> | 2019-12-08 20:15:08 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-12-08 21:08:39 +0100 |
commit | 9e668eedf135962ca121285d0db148c47784e298 (patch) | |
tree | 7c09b1f2b3590c79b2203cdadd85d84ee48104dd /src | |
parent | 425bfc5b1690cd7d46dc59a54107f0c5e770beae (diff) | |
download | ingen-9e668eedf135962ca121285d0db148c47784e298.tar.gz ingen-9e668eedf135962ca121285d0db148c47784e298.tar.bz2 ingen-9e668eedf135962ca121285d0db148c47784e298.zip |
Cleanup: Set up engine RNG with a distinct seed
From a clang-tidy warning. This almost certainly doesn't matter, but since
it's used for monitor event timing, it could spread the load a little better if
multiple engines are used in the same process.
Diffstat (limited to 'src')
-rw-r--r-- | src/server/Engine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/Engine.cpp b/src/server/Engine.cpp index 545ce72b..9414d8c3 100644 --- a/src/server/Engine.cpp +++ b/src/server/Engine.cpp @@ -87,7 +87,7 @@ Engine::Engine(ingen::World& world) new AtomReader(world.uri_map(), world.uris(), world.log(), *_interface)) , _root_graph(nullptr) , _cycle_start_time(0) - , _rand_engine(0) + , _rand_engine(reinterpret_cast<uintptr_t>(this)) , _uniform_dist(0.0f, 1.0f) , _quit_flag(false) , _reset_load_flag(false) |