On Tue, Jul 14, 2015 at 04:45:49PM -0700, Tom Herbert wrote: > > + } else if (score == best_score) { > + matches++; > + if (reciprocal_scale(khash, matches) == 0) > + result = he; > + khash = next_pseudo_random32(khash); > + }
Note that during a rehash you can encounter the same object multiple times, does this logic still work in that case? Cheers, -- Email: Herbert Xu <herb...@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html