Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
Add additional logging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
StrangerCoug committed Nov 3, 2023
1 parent 18a6cb0 commit 3b177a6
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,15 @@ public class FreeCasino {

static {
RandomGenerator rng1;
log.info("Getting SecureRandom instance for the backup RNG...");
try {
rng1 = SecureRandom.getInstance("DRBG",
DrbgParameters.instantiation(256, PR_AND_RESEED, null));
log.info("Successfully got defined SecureRandom instance for the backup RNG.");
} catch (NoSuchAlgorithmException e) {
log.warning("Unable to get the defined SecureRandom instance; using the default SecureRandom instance. "
+ "This instance may have less than the desired bit security strength and may not support prediction "
+ "resistance or reseeding.");
log.warning("Unable to get the defined SecureRandom instance for the backup RNG; using the default " +
"SecureRandom instance. This instance may have less than the desired bit security strength and may " +
"not support prediction resistance or reseeding.");
rng1 = new SecureRandom();
}
rng = rng1;
Expand Down

0 comments on commit 3b177a6

Please sign in to comment.