From eb9dbdda40cada805303edf4d965690a3bb4c616 Mon Sep 17 00:00:00 2001 From: lidgren Date: Mon, 25 Aug 2014 06:51:24 +0000 Subject: [PATCH] Warnings fixed --- Lidgren.Network/NetRandom.Implementations.cs | 8 ++++---- Lidgren.Network/NetRandom.cs | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Lidgren.Network/NetRandom.Implementations.cs b/Lidgren.Network/NetRandom.Implementations.cs index f97ad213..e0da4705 100644 --- a/Lidgren.Network/NetRandom.Implementations.cs +++ b/Lidgren.Network/NetRandom.Implementations.cs @@ -8,7 +8,7 @@ namespace Lidgren.Network /// 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 @@ public override uint NextUInt32() /// 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 @@ public override uint NextUInt32() /// 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 @@ private void GenRandAll() /// 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(); diff --git a/Lidgren.Network/NetRandom.cs b/Lidgren.Network/NetRandom.cs index 177670a0..82550a48 100644 --- a/Lidgren.Network/NetRandom.cs +++ b/Lidgren.Network/NetRandom.cs @@ -41,7 +41,7 @@ public virtual uint NextUInt32() } /// - /// 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 /// public override int Next() { @@ -52,7 +52,7 @@ public override int Next() } /// - /// 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) /// public int NextInt32() { @@ -60,7 +60,7 @@ public int NextInt32() } /// - /// Returns random value >= 0.0 and < 1.0 + /// Returns random value larger or equal to 0.0 and less than 1.0 /// public override double NextDouble() { @@ -68,7 +68,7 @@ public override double NextDouble() } /// - /// Returns random value >= 0.0 and < 1.0 + /// Returns random value is greater or equal than 0.0 and less than 1.0 /// protected override double Sample() { @@ -76,7 +76,7 @@ protected override double Sample() } /// - /// Returns random value >= 0.0f and < 1.0f + /// Returns random value is greater or equal than 0.0f and less than 1.0f /// public float NextSingle() { @@ -87,7 +87,7 @@ public float NextSingle() } /// - /// Returns a random value >= 0 and < maxValue + /// Returns a random value is greater or equal than 0 and less than maxValue /// public override int Next(int maxValue) { @@ -95,7 +95,7 @@ public override int Next(int maxValue) } /// - /// Returns a random value >= minValue and < maxValue + /// Returns a random value is greater or equal than minValue and less than maxValue /// public override int Next(int minValue, int maxValue) {