From 1459ed6ae9cc4be57bc640add24828fd07ada29f Mon Sep 17 00:00:00 2001 From: Noah <33094578+coolreader18@users.noreply.github.com> Date: Sun, 1 Mar 2020 14:41:51 -0600 Subject: [PATCH] Correct comment --- vm/src/pyhash.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vm/src/pyhash.rs b/vm/src/pyhash.rs index fc11678fc..7c650517b 100644 --- a/vm/src/pyhash.rs +++ b/vm/src/pyhash.rs @@ -125,7 +125,9 @@ impl PyHashInfo { imag: IMAG, algorithm: "siphash13", hash_bits: std::mem::size_of::() * 8, - // TODO: find out what seed_bits should actually be + // internally hash_map::DefaultHasher uses 2 u64s as the seed, but + // that's not guaranteed to be consistent across Rust releases + // TODO: use something like the siphasher crate as our hash algorithm seed_bits: std::mem::size_of::() * 2 * 8, }; }