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

Commit

Permalink
Add personalization string to SecureRandom instance
Browse files Browse the repository at this point in the history
  • Loading branch information
StrangerCoug committed Nov 4, 2023
1 parent 3b177a6 commit 76a96c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public class FreeCasino {
log.info("Getting SecureRandom instance for the backup RNG...");
try {
rng1 = SecureRandom.getInstance("DRBG",
DrbgParameters.instantiation(256, PR_AND_RESEED, null));
DrbgParameters.instantiation(256, PR_AND_RESEED, "FreeCasino".getBytes()));
log.info("Successfully got defined SecureRandom instance for the backup RNG.");
} catch (NoSuchAlgorithmException e) {
log.warning("Unable to get the defined SecureRandom instance for the backup RNG; using the default " +
Expand Down

0 comments on commit 76a96c7

Please sign in to comment.