aboutsummaryrefslogtreecommitdiffstats
path: root/src/timestamp.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2019-07-24 18:50:05 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2019-07-24 18:50:05 +0200
commitdb8328bb3b862e7424b0332f7f380877d8a1be7d (patch)
treefc00975d5b6aa60d856764e9e7b65862ed5a1ce1 /src/timestamp.rs
parentTested full handshake (diff)
downloadwireguard-rs-db8328bb3b862e7424b0332f7f380877d8a1be7d.tar.xz
wireguard-rs-db8328bb3b862e7424b0332f7f380877d8a1be7d.zip
Fix TAI64 epoch
Diffstat (limited to 'src/timestamp.rs')
-rw-r--r--src/timestamp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timestamp.rs b/src/timestamp.rs
index 73fe91f..e8447b1 100644
--- a/src/timestamp.rs
+++ b/src/timestamp.rs
@@ -1,8 +1,8 @@
use std::time::{SystemTime, UNIX_EPOCH};
-pub type TAI64N = [u8; 12];
+const TAI64_EPOCH : u64 = 0x4000000000000000;
-const TAI64_EPOCH : u64 = 4000000000000000;
+pub type TAI64N = [u8; 12];
pub fn zero() -> TAI64N {
[0u8; 12]