Skip to content

Commit

Permalink
pgsql86: use IV from io[0].
Browse files Browse the repository at this point in the history
IV usage was missing, add.
  • Loading branch information
markokr committed Jan 3, 2013
1 parent f3e91ef commit 9cb0040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pgsql84.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ void hlib_pgsql84(const void *data, size_t keylen, uint64_t *io)

/* Set up the internal state */
len = keylen;
a = b = c = 0x9e3779b9 + len + 3923095;
a = b = c = 0x9e3779b9 + len + 3923095 + io[0];

/* If the source pointer is word-aligned, we use word-wide fetches */
if (((intptr_t) k & UINT32_ALIGN_MASK) == 0)
Expand Down

0 comments on commit 9cb0040

Please sign in to comment.