コード例 #1
0
 /// <summary>
 /// Creates a new <see cref="SecureRandom"/> instance
 /// based on the given <see cref="RandomNumberGenerator"/>.
 /// </summary>
 /// <param name="generator">The <see cref="RandomNumberGenerator"/> to use.</param>
 /// <exception cref="ArgumentNullException">Thrown if <paramref name="generator"/> is <c>null</c>.</exception>
 public SecureRandom(RandomNumberGenerator generator)
 {
     generator.CheckParameterForNull("generator");
     this.Generator = generator;
 }