diff --git a/plugins/Stk/Mallets/Mallets.cpp b/plugins/Stk/Mallets/Mallets.cpp index 084482c43d2..9d374023f0d 100644 --- a/plugins/Stk/Mallets/Mallets.cpp +++ b/plugins/Stk/Mallets/Mallets.cpp @@ -304,18 +304,18 @@ void MalletsInstrument::playNote( NotePlayHandle * _n, if(p < 9) { - hardness += random * static_cast(rand() % 128) - 64.0; + hardness += random * static_cast(fast_rand() % 128) - 64.0; hardness = std::clamp(0.0f, hardness, 128.0f); - position += random * static_cast(rand() % 64) - 32.0; + position += random * static_cast(fast_rand() % 64) - 32.0; position = std::clamp(0.0f, position, 64.0f); } else if(p == 9) { - modulator += random * static_cast(rand() % 128) - 64.0; + modulator += random * static_cast(fast_rand() % 128) - 64.0; modulator = std::clamp(0.0f, modulator, 128.0f); - crossfade += random * static_cast(rand() % 128) - 64.0; + crossfade += random * static_cast(fast_rand() % 128) - 64.0; crossfade = std::clamp(0.0f, crossfade, 128.0f); }