summaryrefslogtreecommitdiff
path: root/src/test/test_hs_pow.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test_hs_pow.c')
-rw-r--r--src/test/test_hs_pow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_hs_pow.c b/src/test/test_hs_pow.c
index e2111478fc..877f022a79 100644
--- a/src/test/test_hs_pow.c
+++ b/src/test/test_hs_pow.c
@@ -382,7 +382,7 @@ test_hs_pow_vectors(void *arg)
sol_hex, 2 * sizeof solution.equix_solution),
OP_EQ, HS_POW_EQX_SOL_LEN);
- solution.seed_head = tor_ntohl(get_uint32(pow_state->seed_previous));
+ memcpy(solution.seed_head, pow_state->seed_previous, HS_POW_SEED_HEAD_LEN);
/* Try to encode 'solution' into a relay cell */