From 789f4fb4f3b9a916a0609616e222ecfa0af86a5f Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 4 Aug 2012 15:58:33 +0100 Subject: COMMS: Randomise the count-per-hook a little to make it harder to get around --- lib/supple/comms.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() -- cgit v1.2.1