aboutsummaryrefslogtreecommitdiffstats
path: root/server/resty/session/identifiers/random.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/resty/session/identifiers/random.lua')
-rw-r--r--server/resty/session/identifiers/random.lua13
1 files changed, 0 insertions, 13 deletions
diff --git a/server/resty/session/identifiers/random.lua b/server/resty/session/identifiers/random.lua
deleted file mode 100644
index a2f9739..0000000
--- a/server/resty/session/identifiers/random.lua
+++ /dev/null
@@ -1,13 +0,0 @@
-local tonumber = tonumber
-local random = require "resty.random".bytes
-local var = ngx.var
-
-local defaults = {
- length = tonumber(var.session_random_length, 10) or 16
-}
-
-return function(session)
- local config = session.random or defaults
- local length = tonumber(config.length, 10) or defaults.length
- return random(length, true) or random(length)
-end