protected virtual void Dispose(bool disposing)
        {
            if (!disposing)
            {
                return;
            }

            if (_rndProv != null)
            {
                _rndProv.Dispose();
                _rndProv = null;
            }
        }
 public CryptoApiRandomGenerator()
 {
     _rndProv = RNGCryptoServiceProviderBase.Create();
 }