diff --git a/modules/juce_core/maths/juce_Random.cpp b/modules/juce_core/maths/juce_Random.cpp index 020252a13d..86b82e9f48 100644 --- a/modules/juce_core/maths/juce_Random.cpp +++ b/modules/juce_core/maths/juce_Random.cpp @@ -58,7 +58,7 @@ void Random::combineSeed (const int64 seedValue) noexcept void Random::setSeedRandomly() { - static int64 globalSeed = 0; + static std::atomic globalSeed { 0 }; combineSeed (globalSeed ^ (int64) (pointer_sized_int) this); combineSeed (Time::getMillisecondCounter());