diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-08-04 15:58:33 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-08-04 15:58:33 +0100 |
commit | 789f4fb4f3b9a916a0609616e222ecfa0af86a5f (patch) | |
tree | 9fe6ff8b7603c140c7dd8fc81478628391bd58f4 | |
parent | d73be348acdf9f18479734fd09ddbfdb017c47bf (diff) | |
download | supple-789f4fb4f3b9a916a0609616e222ecfa0af86a5f.tar.gz |
COMMS: Randomise the count-per-hook a little to make it harder to get around
-rw-r--r-- | lib/supple/comms.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/supple/comms.lua b/lib/supple/comms.lua index ea80fad..639ce33 100644 --- a/lib/supple/comms.lua +++ b/lib/supple/comms.lua @@ -79,7 +79,9 @@ local function captcha(msg) end local limits = {} -local count_per_hook = 10 +math.randomseed(os.time()) +math.randomseed(math.random(luxio.getpid())) +local count_per_hook = 10 + (math.random(5) - 3) local limiting = false local function limit_hook() |