Use random UniqueID for LoginID

This commit is contained in:
JustArchi
2015-12-16 10:20:08 +01:00
parent b6a5b8942c
commit 8fefa7c5af
3 changed files with 5 additions and 1 deletions

View File

@@ -556,7 +556,7 @@ namespace ArchiSteamFarm {
SteamUser.LogOn(logOnDetails);
} else {
// TODO: We should use SteamUser.LogOn with proper LoginID once https://github.com/SteamRE/SteamKit/pull/217 gets merged
ArchiHandler.HackedLogOn(0xBAADF00D, logOnDetails);
ArchiHandler.HackedLogOn(Program.UniqueID, logOnDetails);
}
}

View File

@@ -55,6 +55,7 @@ namespace ArchiSteamFarm {
private static readonly object ConsoleLock = new object();
//private static readonly string ExeName = AssemblyName.Name + ".exe";
internal static readonly uint UniqueID = (uint) Utilities.Random.Next();
internal static readonly string Version = AssemblyName.Version.ToString();
internal static bool ConsoleIsBusy = false;

View File

@@ -22,11 +22,14 @@
*/
using System;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace ArchiSteamFarm {
internal static class Utilities {
internal static readonly Random Random = new Random();
internal static async Task SleepAsync(int miliseconds) {
await Task.Delay(miliseconds).ConfigureAwait(false);
}