Updated Bnet Server.

Port From (https://github.com/TrinityCore/TrinityCore)
This commit is contained in:
hondacrx
2024-02-21 00:05:48 -05:00
parent 7960e7b192
commit 9e3a7df6a7
62 changed files with 2186 additions and 731 deletions
+7
View File
@@ -84,6 +84,13 @@ public class RandomHelper
rand.NextBytes(buffer);
}
public static byte[] GetRandomBytes(int length)
{
byte[] buffer = new byte[length];
rand.NextBytes(buffer);
return buffer;
}
public static T RAND<T>(params T[] args)
{
int randIndex = IRand(0, args.Length - 1);