summaryrefslogtreecommitdiffstats
path: root/src/server/PortImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/PortImpl.cpp')
-rw-r--r--src/server/PortImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/PortImpl.cpp b/src/server/PortImpl.cpp
index 950c8739..0e71de96 100644
--- a/src/server/PortImpl.cpp
+++ b/src/server/PortImpl.cpp
@@ -147,7 +147,7 @@ PortImpl::activate(BufferFactory& bufs)
*/
const double srate = bufs.engine().driver()->sample_rate();
const uint32_t period = srate / monitor_rate;
- _frames_since_monitor = rand() % period;
+ _frames_since_monitor = bufs.engine().frand() * period;
_last_monitor_value = 0.0f;
}