mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
bw - set a random seed for each worker
This commit is contained in:
parent
252c16b763
commit
ad96dc0fa0
1 changed files with 3 additions and 0 deletions
|
|
@ -1,6 +1,9 @@
|
|||
lua_shared_dict worker_lock 16k;
|
||||
|
||||
init_worker_by_lua_block {
|
||||
-- Random seed
|
||||
math.randomseed(os.time() + ngx.worker.pid())
|
||||
|
||||
-- Our timer function
|
||||
local ready_work = function(premature)
|
||||
-- Libs
|
||||
|
|
|
|||
Loading…
Reference in a new issue