Merge remote-tracking branch 'origin/master'

This commit is contained in:
CrackmaticSoftware
2025-12-07 19:59:01 +01:00
19 changed files with 606 additions and 65 deletions

View File

@@ -519,4 +519,12 @@ public static class Money
return payout;
}
/// <summary>
/// Generate a short random string based on the first 4 bytes of a GUID for event IDs
/// </summary>
/// <returns>Returns a lowercase hex representation of the 4 bytes. e.g. 7ec79eb2</returns>
public static string GenerateEventId()
{
return Convert.ToHexString(Guid.NewGuid().ToByteArray()[..4]).ToLower();
}
}