コード例 #1
0
 /// <summary>
 /// Construct a RandomDataImpl, using a default random generator as the source
 /// of randomness.
 /// <para>The default generator is a <see cref="Well19937c"/> seeded
 /// with <c>System.currentTimeMillis() + System.identityHashCode(this))</c>.
 /// The generator is initialized and seeded on first use.</para>
 /// </summary>
 public RandomDataImpl()
 {
     delegates = new RandomDataGenerator();
 }
コード例 #2
0
 /// <summary>
 /// Construct a RandomDataImpl using the supplied <see cref="RandomGenerator"/> as
 /// the source of (non-secure) random data.
 /// </summary>
 /// <param name="rand">rand the source of (non-secure) random data
 /// (may be null, resulting in the default generator)</param>
 public RandomDataImpl(RandomGenerator rand)
 {
     delegates = new RandomDataGenerator(rand);
 }