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
@Singleton
SecureRandomProvider provideSecureRandomProvider() {
if (isLinux() || isMac())
return new UnixSecureRandomProvider();
// TODO: Create a secure random provider for Windows
throw new UnsupportedOperationException();
if (isLinux() || isMac()) return new UnixSecureRandomProvider();
return () -> null; // Use system default
}
}