diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-07-24 18:50:05 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-07-24 18:50:05 +0200 |
commit | db8328bb3b862e7424b0332f7f380877d8a1be7d (patch) | |
tree | fc00975d5b6aa60d856764e9e7b65862ed5a1ce1 /src/timestamp.rs | |
parent | Tested full handshake (diff) | |
download | wireguard-rs-db8328bb3b862e7424b0332f7f380877d8a1be7d.tar.xz wireguard-rs-db8328bb3b862e7424b0332f7f380877d8a1be7d.zip |
Fix TAI64 epoch
Diffstat (limited to 'src/timestamp.rs')
-rw-r--r-- | src/timestamp.rs | 4 |
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] |