summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/noise.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/noise.c b/src/noise.c
index 84bde39..1a28b47 100644
--- a/src/noise.c
+++ b/src/noise.c
@@ -360,7 +360,7 @@ static void tai64n_now(u8 output[NOISE_TIMESTAMP_LEN])
getnstimeofday64(&now);
/* https://cr.yp.to/libtai/tai64.html */
- *(__be64 *)output = cpu_to_be64(4611686018427387914ULL + now.tv_sec);
+ *(__be64 *)output = cpu_to_be64(0x400000000000000aULL + now.tv_sec);
*(__be32 *)(output + sizeof(__be64)) = cpu_to_be32(now.tv_nsec);
}