Skip to content

Commit 1459ed6

Browse files
committed
Correct comment
1 parent 27c1ecf commit 1459ed6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vm/src/pyhash.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ impl PyHashInfo {
125125
imag: IMAG,
126126
algorithm: "siphash13",
127127
hash_bits: std::mem::size_of::<PyHash>() * 8,
128-
// TODO: find out what seed_bits should actually be
128+
// 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
129131
seed_bits: std::mem::size_of::<PyHash>() * 2 * 8,
130132
};
131133
}

0 commit comments

Comments
 (0)