mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-20 06:39:54 +01:00
Use default SecureRandomProvider on Windows.
This commit is contained in:
@@ -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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user