From 3b177a637a44d03bb3c71e8ff03e186007d26659 Mon Sep 17 00:00:00 2001 From: Jeffrey Hope Date: Fri, 3 Nov 2023 18:54:55 -0500 Subject: [PATCH] Add additional logging messages --- .../com/github/strangercoug/freecasino/FreeCasino.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/github/strangercoug/freecasino/FreeCasino.java b/src/main/java/com/github/strangercoug/freecasino/FreeCasino.java index 3c13911..3041d56 100644 --- a/src/main/java/com/github/strangercoug/freecasino/FreeCasino.java +++ b/src/main/java/com/github/strangercoug/freecasino/FreeCasino.java @@ -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;