Skip to content

Commit

Permalink
Remove no longer needed "random token"
Browse files Browse the repository at this point in the history
  • Loading branch information
dounai2333 committed Dec 5, 2023
1 parent a1fd0ef commit fb6c796
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions Source/Coop/Web/AkiBackendCommunicationCoop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,6 @@ namespace StayInTarkov.Coop.Web
{
public class AkiBackendCommunicationCoop : AkiBackendCommunication
{
static Random Randomizer { get; }

/// <summary>
/// Static Constructor is run when the Assembly is loaded
/// </summary>
static AkiBackendCommunicationCoop()
{
Randomizer = new Random();
}

/// <summary>
/// Constructor of this instance
/// </summary>
AkiBackendCommunicationCoop() : base(null)
{
}

public static void PostLocalPlayerData(
EFT.Player player
, Dictionary<string, object> data
Expand Down Expand Up @@ -52,10 +35,6 @@ EFT.Player player
{
data.Add("t", DateTime.Now.Ticks.ToString("G"));
}
if (!data.ContainsKey("tkn"))
{
data.Add("tkn", Randomizer.NextDouble());
}
if (!data.ContainsKey("serverId"))
{
data.Add("serverId", CoopGameComponent.GetServerId());
Expand Down

0 comments on commit fb6c796

Please sign in to comment.