bw - set a random seed for each worker

This commit is contained in:
florian 2024-02-27 22:13:14 +01:00
parent 252c16b763
commit ad96dc0fa0
No known key found for this signature in database
GPG key ID: 93EE47CC3D061500

View file

@ -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