Skip to content

Wrong formula for index? #2

@dkales

Description

@dkales

The order of operations in code at

(h1.wrapping_add(k_i).wrapping_mul(h2) % self.optimal_m) as usize

does not seem to agree with the formula in the blog post g_i(x) = h_1(x) + i*h_2(x).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions