summaryrefslogtreecommitdiff
path: root/src/basic/siphash24.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/basic/siphash24.c')
-rw-r--r--src/basic/siphash24.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/siphash24.c b/src/basic/siphash24.c
index d2e4077f8a..48ab8c23b8 100644
--- a/src/basic/siphash24.c
+++ b/src/basic/siphash24.c
@@ -53,8 +53,8 @@ void siphash24_init(struct siphash *state, const uint8_t k[16]) {
assert(state);
assert(k);
- k0 = le64toh(*(le64_t*) k);
- k1 = le64toh(*(le64_t*) (k + 8));
+ k0 = unaligned_read_le64(k);
+ k1 = unaligned_read_le64(k + 8);
/* "somepseudorandomlygeneratedbytes" */
state->v0 = 0x736f6d6570736575ULL ^ k0;