Updated Bnet Server.
Port From (https://github.com/TrinityCore/TrinityCore)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user