Sessions .with_desync_detection(DesyncDetection::On)
always reports false positives
#49
Labels
bug
Something isn't working
Describe the bug
Check out the branch in #48 , which enables desync detection in the p2p example. As soon as it starts, it reports a desync.
Expected behavior
It should not report a desync (since it doesn't desync. only the hash is different)
Desktop (please complete the following information):
Additional context
This happens because bevy_reflect uses
ahash::AHasher::default
. Since bevy uses ahasher with the default features, this means it's seeded at runtime, which means hashes will always be different across peers, see: https://docs.rs/ahash/latest/ahash/struct.AHasher.html#method.defaultThe text was updated successfully, but these errors were encountered: