Update random generator reference

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
This commit is contained in:
Rahul Rudragoudar
2021-04-24 19:37:44 +05:30
parent 0d33f51f9e
commit 30bb26473e
2 changed files with 4 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ import lc.database.Statements
import java.util.concurrent.{ScheduledThreadPoolExecutor, TimeUnit}
import lc.core.{Captcha, Config}
import lc.core.{Parameters, Size}
import lc.misc.HelperFunctions
class BackgroundTask(throttle: Int, timeLimit: Int) {
@@ -39,7 +40,7 @@ class BackgroundTask(throttle: Int, timeLimit: Int) {
}
private def pickRandom[T](list: List[T]): T = {
list(Config.getNextRandomInt(list.size))
list(HelperFunctions.randomNumber(list.size))
}
def beginThread(delay: Int): Unit = {