LootDumpProcessor/Utils/KeyGenerator.cs
chomp 6e4c7abf73 dump-processor-cleanup (#6)
Co-authored-by: Alex <alex@dm-me-for-questions.com>
Reviewed-on: SPT-AKI/LootDumpProcessor#6
2024-04-16 18:29:40 +00:00

15 lines
287 B
C#

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