mirror of
https://github.com/librecaptcha/lc-core.git
synced 2025-02-12 11:18:07 -05:00
default config: randomize seed used by randomizer
Signed-off-by: hrj <harshad.rj@gmail.com>
This commit is contained in:
parent
523805263a
commit
46012b2ce3
@ -5,6 +5,7 @@ import org.json4s.{DefaultFormats, JValue, JObject, JField, JString}
|
||||
import org.json4s.jackson.JsonMethods.{parse, render, pretty}
|
||||
import org.json4s.JsonDSL._
|
||||
import java.io.{FileNotFoundException, File, PrintWriter}
|
||||
import java.{util => ju}
|
||||
|
||||
object Config {
|
||||
|
||||
@ -50,7 +51,7 @@ object Config {
|
||||
|
||||
private def getDefaultConfig(): String = {
|
||||
val defaultConfigMap =
|
||||
(AttributesEnum.RANDOM_SEED.toString -> 20) ~
|
||||
(AttributesEnum.RANDOM_SEED.toString -> new ju.Random().nextInt()) ~
|
||||
(AttributesEnum.PORT.toString -> 8888) ~
|
||||
(AttributesEnum.CAPTCHA_EXPIRY_TIME_LIMIT.toString -> 5) ~
|
||||
(AttributesEnum.THROTTLE.toString -> 1000) ~
|
||||
|
Loading…
x
Reference in New Issue
Block a user