Use default SecureRandomProvider on Windows.

This commit is contained in:
akwizgran
2022-03-10 22:59:51 +00:00
parent d83efce002
commit 98963955b1

View File

@@ -16,9 +16,7 @@ public class DesktopSecureRandomModule {
@Provides @Provides
@Singleton @Singleton
SecureRandomProvider provideSecureRandomProvider() { SecureRandomProvider provideSecureRandomProvider() {
if (isLinux() || isMac()) if (isLinux() || isMac()) return new UnixSecureRandomProvider();
return new UnixSecureRandomProvider(); return () -> null; // Use system default
// TODO: Create a secure random provider for Windows
throw new UnsupportedOperationException();
} }
} }