0
0
mirror of https://github.com/sp-tarkov/loot-dump-processor.git synced 2025-02-12 21:10:45 -05:00
loot-dump-processor/Utils/KeyGenerator.cs

15 lines
287 B
C#
Raw Normal View History

namespace LootDumpProcessor.Utils;
public class KeyGenerator
{
private static long currentKey = 0L;
private static object lockObject = new();
public static string GetNextKey()
{
lock (lockObject)
{
return $"{++currentKey}";
}
}
}