mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Fixed same random number generation on different bots and runners.
This commit is contained in:
@@ -31,6 +31,7 @@ namespace OpenBulletCLI
|
||||
|
||||
public static EnvironmentSettings Env { get; set; }
|
||||
public static RLSettingsViewModel RLSettings { get; set; }
|
||||
private static Random random = new Random();
|
||||
public static RunnerViewModel Runner { get; set; }
|
||||
public static bool Verbose { get; set; } = false;
|
||||
public static string ProxyFile { get; set; }
|
||||
@@ -103,7 +104,7 @@ namespace OpenBulletCLI
|
||||
RLSettings = IOManager.LoadSettings(settFile);
|
||||
|
||||
// Initialize the Runner (and hook event handlers)
|
||||
Runner = new RunnerViewModel(Env, RLSettings);
|
||||
Runner = new RunnerViewModel(Env, RLSettings, random);
|
||||
Runner.AskCustomInputs += AskCustomInputs;
|
||||
Runner.DispatchAction += DispatchAction;
|
||||
Runner.FoundHit += FoundHit;
|
||||
|
||||
Reference in New Issue
Block a user