From af145e871e19a1574afb572394ff47b04925ffc2 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Wed, 7 Mar 2018 13:17:29 +0100 Subject: [PATCH] test: use random version in ntp_core unit test --- test/unit/ntp_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit/ntp_core.c b/test/unit/ntp_core.c index ad69e0f..9587306 100644 --- a/test/unit/ntp_core.c +++ b/test/unit/ntp_core.c @@ -303,6 +303,7 @@ test_unit(void) source.params.interleaved = 1; if (random() % 2) source.params.authkey = 1; + source.params.version = random() % 4 + 1; UTI_ZeroTimespec(¤t_time); advance_time(TST_GetRandomDouble(1.0, 1e9));