We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27c1ecf commit 1459ed6Copy full SHA for 1459ed6
vm/src/pyhash.rs
@@ -125,7 +125,9 @@ impl PyHashInfo {
125
imag: IMAG,
126
algorithm: "siphash13",
127
hash_bits: std::mem::size_of::<PyHash>() * 8,
128
- // TODO: find out what seed_bits should actually be
+ // internally hash_map::DefaultHasher uses 2 u64s as the seed, but
129
+ // that's not guaranteed to be consistent across Rust releases
130
+ // TODO: use something like the siphasher crate as our hash algorithm
131
seed_bits: std::mem::size_of::<PyHash>() * 2 * 8,
132
};
133
}
0 commit comments