/// <summary> /// Initializes a new instance of the <see cref="RandomSource"/> class using /// the value of <see cref="Control.ThreadSafeRandomNumberGenerators"/> to set whether /// the instance is thread safe or not. /// </summary> protected RandomSource() : base(RandomSeed.Robust()) { //_threadSafe = Control.ThreadSafeRandomNumberGenerators; }
/// <summary> /// Initializes a new instance of the <see cref="RandomSource"/> class. /// </summary> /// <param name="threadSafe">if set to <c>true</c> , the class is thread safe.</param> /// <remarks>Thread safe instances are two and half times slower than non-thread /// safe classes.</remarks> protected RandomSource(bool threadSafe) : base(RandomSeed.Robust()) { _threadSafe = threadSafe; }
/// <summary> /// Initializes a new instance of the <see cref="MersenneTwister"/> class TODO: based on /// what seed? /// </summary> public MersenneTwister() { Initialize((uint)RandomSeed.Robust()); }