/// <summary>
 /// Initializes a new instance of the RandomNumberGenerator class with the specified session context.
 /// </summary>
 /// <param name="session">The Cryptoki session context to be used to generate the random data.</param>
 public RNGCryptoServiceProvider(Session session) 
     : base(session, false)
 {
     m_rng = new CryptokiRNG(m_session);
 }
 /// <summary>
 /// Initializes a new instance of the RandomNumberGenerator class with the specified crypto service provider.
 /// </summary>
 /// <param name="serviceProvider">The crypto service provider to be used to generate the random data.</param>
 public RNGCryptoServiceProvider(string serviceProvider="")
     : base(new Session(serviceProvider), true)
 {
     m_rng = new CryptokiRNG(m_session);
 }