parent
ff71fcbcad
commit
b0b4612609
|
@ -543,7 +543,7 @@ public class BCrypt {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
rounds = roundsForLogRounds(log_rounds);
|
rounds = roundsForLogRounds(log_rounds);
|
||||||
if (rounds < 16 || rounds > Integer.MAX_VALUE) {
|
if (rounds < 16 || rounds > 2147483648L) {
|
||||||
throw new IllegalArgumentException("Bad number of rounds");
|
throw new IllegalArgumentException("Bad number of rounds");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue