mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-04-03 15:55:49 -05:00
Fix random action not being random
This commit is contained in:
parent
92add4f090
commit
eeceb7cbd9
|
|
@ -46,7 +46,7 @@ bool MacroActionRandom::PerformAction()
|
|||
lastRandomMacro = macros[0];
|
||||
return macros[0]->PerformActions();
|
||||
}
|
||||
|
||||
srand((unsigned int)time(0));
|
||||
size_t idx = std::rand() % (macros.size());
|
||||
lastRandomMacro = macros[idx];
|
||||
return macros[idx]->PerformActions();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user