add the total number of values extracted from RNG to sync report

This commit is contained in:
Matthias Mailänder
2013-02-25 20:52:48 +01:00
parent 4b2f08f21f
commit dd476bbf5c
2 changed files with 5 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ namespace OpenRA.Thirdparty
int index = 0;
public int Last;
public int TotalCount = 0;
public Random() : this(Environment.TickCount) { }
@@ -41,6 +42,7 @@ namespace OpenRA.Thirdparty
y ^= y >> 18;
index = (index + 1) % 624;
TotalCount++;
Last = (int)(y % int.MaxValue);
return Last;
}