diff options
-rw-r--r-- | crypto/src/crypto/CryptoServicesRegistrar.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/crypto/src/crypto/CryptoServicesRegistrar.cs b/crypto/src/crypto/CryptoServicesRegistrar.cs new file mode 100644 index 000000000..33bf47386 --- /dev/null +++ b/crypto/src/crypto/CryptoServicesRegistrar.cs @@ -0,0 +1,17 @@ +using Org.BouncyCastle.Security; + +namespace Org.BouncyCastle.Crypto +{ + public static class CryptoServicesRegistrar + { + public static SecureRandom GetSecureRandom() + { + return new SecureRandom(); + } + + public static SecureRandom GetSecureRandom(SecureRandom secureRandom) + { + return secureRandom ?? new SecureRandom(); + } + } +} |