mirror of
https://github.com/LMMS/lmms.git
synced 2026-05-09 23:35:33 -04:00
Improve lmms::fastRand() and use it instead of std::rand() (#7741)
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#include "PeakControllerEffectControls.h"
|
||||
#include "PeakControllerEffect.h"
|
||||
#include "Song.h"
|
||||
#include "lmms_math.h"
|
||||
|
||||
namespace lmms
|
||||
{
|
||||
@@ -81,7 +82,7 @@ void PeakControllerEffectControls::loadSettings( const QDomElement & _this )
|
||||
else
|
||||
{
|
||||
// TODO: Fix possible collision
|
||||
m_effect->m_effectId = rand();
|
||||
m_effect->m_effectId = fastRand();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user