mirror of
https://github.com/librecaptcha/lc-core.git
synced 2025-02-12 19:28:05 -05:00
fix bug in randomNumber(min, max)
Signed-off-by: hrj <harshad.rj@gmail.com>
This commit is contained in:
parent
6196a34aae
commit
e3241ff7ac
@ -39,7 +39,7 @@ public class HelperFunctions {
|
||||
}
|
||||
|
||||
synchronized public static int randomNumber(int min, int max) {
|
||||
return (random.nextInt() * ((max - min) + 1)) + min;
|
||||
return random.nextInt((max - min) + 1) + min;
|
||||
}
|
||||
|
||||
synchronized public static int randomNumber(int bound) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user