1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-15 22:56:30 +09:00

Warnings fixed

This commit is contained in:
lidgren
2014-08-25 06:51:24 +00:00
parent 82fcede26c
commit eb9dbdda40
2 changed files with 11 additions and 11 deletions

View File

@@ -8,7 +8,7 @@ namespace Lidgren.Network
/// </summary>
public class MWCRandom : NetRandom
{
public static readonly MWCRandom Instance = new MWCRandom();
public static new readonly MWCRandom Instance = new MWCRandom();
private uint m_w, m_z;
@@ -45,7 +45,7 @@ namespace Lidgren.Network
/// </summary>
public sealed class XorShiftRandom : NetRandom
{
public static readonly XorShiftRandom Instance = new XorShiftRandom();
public static new readonly XorShiftRandom Instance = new XorShiftRandom();
private const uint c_x = 123456789;
private const uint c_y = 362436069;
@@ -97,7 +97,7 @@ namespace Lidgren.Network
/// </summary>
public sealed class MersenneTwisterRandom : NetRandom
{
public static readonly MersenneTwisterRandom Instance = new MersenneTwisterRandom();
public static new readonly MersenneTwisterRandom Instance = new MersenneTwisterRandom();
private const int N = 624;
private const int M = 397;
@@ -184,7 +184,7 @@ namespace Lidgren.Network
/// </summary>
public class CryptoRandom : NetRandom
{
public static readonly CryptoRandom Instance = new CryptoRandom();
public static new readonly CryptoRandom Instance = new CryptoRandom();
private RandomNumberGenerator m_rnd = new RNGCryptoServiceProvider();

View File

@@ -41,7 +41,7 @@ namespace Lidgren.Network
}
/// <summary>
/// Generates a random value that is >= 0 and < Int32.MaxValue
/// Generates a random value that is greater or equal than 0 and less than Int32.MaxValue
/// </summary>
public override int Next()
{
@@ -52,7 +52,7 @@ namespace Lidgren.Network
}
/// <summary>
/// Generates a random value >= 0 and <= Int32.MaxValue (inclusively)
/// Generates a random value greater or equal than 0 and less or equal than Int32.MaxValue (inclusively)
/// </summary>
public int NextInt32()
{
@@ -60,7 +60,7 @@ namespace Lidgren.Network
}
/// <summary>
/// Returns random value >= 0.0 and < 1.0
/// Returns random value larger or equal to 0.0 and less than 1.0
/// </summary>
public override double NextDouble()
{
@@ -68,7 +68,7 @@ namespace Lidgren.Network
}
/// <summary>
/// Returns random value >= 0.0 and < 1.0
/// Returns random value is greater or equal than 0.0 and less than 1.0
/// </summary>
protected override double Sample()
{
@@ -76,7 +76,7 @@ namespace Lidgren.Network
}
/// <summary>
/// Returns random value >= 0.0f and < 1.0f
/// Returns random value is greater or equal than 0.0f and less than 1.0f
/// </summary>
public float NextSingle()
{
@@ -87,7 +87,7 @@ namespace Lidgren.Network
}
/// <summary>
/// Returns a random value >= 0 and < maxValue
/// Returns a random value is greater or equal than 0 and less than maxValue
/// </summary>
public override int Next(int maxValue)
{
@@ -95,7 +95,7 @@ namespace Lidgren.Network
}
/// <summary>
/// Returns a random value >= minValue and < maxValue
/// Returns a random value is greater or equal than minValue and less than maxValue
/// </summary>
public override int Next(int minValue, int maxValue)
{