File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
src/Renci.SshNet/Abstractions Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ namespace Renci.SshNet.Abstractions
77{
88 internal static class CryptoAbstraction
99 {
10- private static readonly RandomNumberGenerator Randomizer = RandomNumberGenerator . Create ( ) ;
10+ internal static readonly RandomNumberGenerator Randomizer = RandomNumberGenerator . Create ( ) ;
1111
1212 internal static readonly SecureRandom SecureRandom = new SecureRandom ( new CryptoApiRandomGenerator ( Randomizer ) ) ;
1313 }
Original file line number Diff line number Diff line change 11#nullable enable
2+ #if ! NET
3+ using Renci . SshNet . Abstractions ;
4+ #endif
5+
26namespace System . Security . Cryptography
37{
48 internal static class RandomNumberGeneratorExtensions
59 {
6- #if ! NET
7- private static readonly RandomNumberGenerator Randomizer = RandomNumberGenerator . Create ( ) ;
8- #endif
9-
1010 extension ( RandomNumberGenerator )
1111 {
1212#if ! NET
1313 public static byte [ ] GetBytes ( int length )
1414 {
1515 var random = new byte [ length ] ;
16- Randomizer . GetBytes ( random ) ;
16+ CryptoAbstraction . Randomizer . GetBytes ( random ) ;
1717 return random ;
1818 }
1919#endif
You can’t perform that action at this time.
0 commit comments