Skip to content

Commit

Permalink
[Java] Make default secure random algorithm dependent on OS.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeb01 committed Nov 19, 2024
1 parent b79e828 commit f12165e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aeron-client/src/main/java/io/aeron/CommonContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,8 @@ public static InferableBoolean parse(final String value)
/**
* The default secure random algorithm to be used.
*/
public static final String SECURE_RANDOM_ALGORITHM_DEFAULT = "NativePRNGNonBlocking";
public static final String SECURE_RANDOM_ALGORITHM_DEFAULT =
SystemUtil.isWindows() ? "Windows-PRNG" : "NativePRNGNonBlocking";

/**
* Get the configured value for the secure random algorithm, falling back to the default if not supplied.
Expand Down

0 comments on commit f12165e

Please sign in to comment.