diff --git a/src/Numerics/Random/SystemRandomSource.cs b/src/Numerics/Random/SystemRandomSource.cs index 8ecefc43..72e4d096 100644 --- a/src/Numerics/Random/SystemRandomSource.cs +++ b/src/Numerics/Random/SystemRandomSource.cs @@ -49,16 +49,18 @@ namespace MathNet.Numerics.Random /// /// Construct a new random number generator with a random seed. /// - public SystemRandomSource() : this(RandomSeed.Robust()) + public SystemRandomSource() { + _random = new System.Random(); } /// /// Construct a new random number generator with random seed. /// /// if set to true , the class is thread safe. - public SystemRandomSource(bool threadSafe) : this(RandomSeed.Robust(), threadSafe) + public SystemRandomSource(bool threadSafe) : base(threadSafe) { + _random = new System.Random(); } /// @@ -80,7 +82,7 @@ namespace MathNet.Numerics.Random _random = new System.Random(seed); } - static readonly ThreadLocal DefaultInstance = new ThreadLocal(() => new SystemRandomSource(RandomSeed.Robust(), true)); + static readonly ThreadLocal DefaultInstance = new ThreadLocal(() => new SystemRandomSource(true)); /// /// Default instance, thread-safe.