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 2020/09/24 13:05:33 UTC

[GitHub] [apisix] membphis commented on a change in pull request #2306: 1.fix generation of uuid;

membphis commented on a change in pull request #2306:
URL: https://github.com/apache/apisix/pull/2306#discussion_r494299962



##########
File path: apisix/init.lua
##########
@@ -107,6 +107,10 @@ function _M.http_init_worker()
     require("apisix.debug").init_worker()
     require("apisix.upstream").init_worker()
 
+    -- need call seed
+    local uuid = require("resty.jit-uuid")
+    uuid.seed()

Review comment:
       https://github.com/apache/apisix/blob/master/apisix/init.lua#L72
   
   We have set the seed with a better way. So we do not need to set it agian.




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

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