From cb3afb87891d316c32c9613b53366f571d6e2c7a Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 22 Jul 2024 21:50:31 +0200 Subject: [PATCH] fix random device --- synth/tx_sineosc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synth/tx_sineosc.h b/synth/tx_sineosc.h index d6cdc15..4305da1 100644 --- a/synth/tx_sineosc.h +++ b/synth/tx_sineosc.h @@ -44,6 +44,7 @@ public: void randomize_phase() { + std::random_device random; std::mt19937 gen(random()); std::uniform_real_distribution<> dis(0.0, 1.0); phase = dis(gen); @@ -54,7 +55,6 @@ private: float phase_resolution; float phase; float history; - std::random_device random; float sine(float x) {