aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/contrib/external-tests/rust/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-07-07 13:48:04 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2016-07-07 13:48:04 +0200
commitc1c5c125c6c6f60688f7d112cb5f3b9ec0c205ca (patch)
treeef9a71cebf1e9b97895932015da5f752b52bde2a /contrib/external-tests/rust/src
parentgo test: actually use TAI64N (diff)
downloadwireguard-monolithic-historical-c1c5c125c6c6f60688f7d112cb5f3b9ec0c205ca.tar.xz
wireguard-monolithic-historical-c1c5c125c6c6f60688f7d112cb5f3b9ec0c205ca.zip
rust test: actually use tai64n
Diffstat (limited to 'contrib/external-tests/rust/src')
-rw-r--r--contrib/external-tests/rust/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/external-tests/rust/src/main.rs b/contrib/external-tests/rust/src/main.rs
index eccb987..73e19b3 100644
--- a/contrib/external-tests/rust/src/main.rs
+++ b/contrib/external-tests/rust/src/main.rs
@@ -42,7 +42,7 @@ fn main() {
let now = time::get_time();
let mut tai64n = [0; 12];
- BigEndian::write_i64(&mut tai64n[0..], now.sec);
+ BigEndian::write_i64(&mut tai64n[0..], 4611686018427387914ULL + now.sec);
BigEndian::write_i32(&mut tai64n[8..], now.nsec);
let mut initiation_packet = [0; 145];
initiation_packet[0] = 1; /* Type: Initiation */