mdedetrich commented on PR #371:
URL: https://github.com/apache/incubator-pekko/pull/371#issuecomment-1580332039

   > collisions should be handled too.
   
   So this isn't entirely clear because I have seen other implementations of 
DNS resolvers in other software (i.e. systemd-resolved) and they just use 
standard random which is also prone to collisions. 
   
   > the call to nextId is not thread safe, does this pr handle this?
   
   I don't think this is an issue, the entire implementation is private and I 
don't think it can be called from multiple threads at once. Even if it can then 
its not a problem, you might get a slightly "wrong" result but it doesn't 
matter because we just want random numbers.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to