You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/01/27 07:02:59 UTC

[GitHub] [apisix] shuaijinchao commented on a change in pull request #6214: fix(admin-token): fixed token is used by default

shuaijinchao commented on a change in pull request #6214:
URL: https://github.com/apache/apisix/pull/6214#discussion_r793302288



##########
File path: apisix/cli/file.lua
##########
@@ -52,6 +58,32 @@ local function tab_is_array(t)
 end
 
 
+local function generate_random_str(len)
+    local rand_str = ""
+    local rand_num = 0
+
+    -- set random seed
+    randomseed(tostring(os_time()):reverse():sub(1, 5))

Review comment:
       the cli program runs independently of APISIX, and the logic here has not been triggered when the cli is executed.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org