New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cut down on rand dependency #3
Comments
Thanks, I'll give it a try. |
Just committed this fix. Ended up using a thread local counter combined with fibonacci hashing. |
awesome! one more question, whats the reason for gethostname? could that part be dropped as well? |
It's used to generate slightly more unique message IDs. However this could be moved as an optional dependency as the chances that two machines generate the same message Id at the same time are quite low. |
Unless I am mistaken or don't understand the RFCs, message boundaries don't need high quality RNG. I believe you can replace with https://git.alexwennerberg.com/misc/file/rand.rs.html or a simpler non-cryptographic rng library
The text was updated successfully, but these errors were encountered: