leslie-tsang commented on issue #5417:
URL: https://github.com/apache/apisix/issues/5417#issuecomment-968476491


   After reading the [lua-resty-jit-uuid's 
issue](https://github.com/thibaultcha/lua-resty-jit-uuid/issues/19#issuecomment-521076462),
 there are three solution for this issue:
   1. use `resty.random` to generate `UUID`, it depend on OpenSSL `RAND_bytes `
   2. use `tostring(table or str)` to get a random seed, Ref to 
[lua-nginx-module issue 
#1457](https://github.com/openresty/lua-nginx-module/issues/1457) and [apisix 
PR 
#5414](https://github.com/apache/apisix/pull/5414/files#diff-95a2018f002f15f5fb0714075b5ef27a1db113c186bfe20ae705f6023080b38fR214)
   3. patch `_G.math.randomseed` like 
[kong](https://github.com/Kong/kong/blob/fb7a68d497c1104779d650014ba6521bf129f726/kong/globalpatches.lua?_pjax=%23js-repo-pjax-container%2C%20div%5Bitemtype%3D%22http%3A%2F%2Fschema.org%2FSoftwareSourceCode%22%5D%20main%2C%20%5Bdata-pjax-container%5D#L241-L342)
 does
   
   @spacewander @tokers What do you guys think ?


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to