diff options
author | 2016-07-07 13:48:04 +0200 | |
---|---|---|
committer | 2016-07-07 13:48:04 +0200 | |
commit | c1c5c125c6c6f60688f7d112cb5f3b9ec0c205ca (patch) | |
tree | ef9a71cebf1e9b97895932015da5f752b52bde2a /contrib | |
parent | go test: actually use TAI64N (diff) | |
download | wireguard-monolithic-historical-c1c5c125c6c6f60688f7d112cb5f3b9ec0c205ca.tar.xz wireguard-monolithic-historical-c1c5c125c6c6f60688f7d112cb5f3b9ec0c205ca.zip |
rust test: actually use tai64n
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/external-tests/rust/src/main.rs | 2 |
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 */ |