Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-25 15:50:14 +01:00
Use a better name to indicate Windows
Dieser Commit ist enthalten in:
Ursprung
5c12dc8e15
Commit
a5a849c059
@ -59,7 +59,7 @@ public final class AesKeyProducer implements KeyProducer {
|
|||||||
private SecureRandom getSecureRandom() throws NoSuchAlgorithmException {
|
private SecureRandom getSecureRandom() throws NoSuchAlgorithmException {
|
||||||
// use Windows-PRNG for windows (default impl is SHA1PRNG)
|
// use Windows-PRNG for windows (default impl is SHA1PRNG)
|
||||||
// default impl for unix-like systems is NativePRNG.
|
// default impl for unix-like systems is NativePRNG.
|
||||||
if (System.getProperty("os.name").toLowerCase(Locale.ROOT).contains("win")) {
|
if (System.getProperty("os.name").startsWith("Windows")) {
|
||||||
return SecureRandom.getInstance("Windows-PRNG");
|
return SecureRandom.getInstance("Windows-PRNG");
|
||||||
} else {
|
} else {
|
||||||
return new SecureRandom();
|
return new SecureRandom();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren