test: fix distribution of settings in ntp_core unit test
This commit is contained in:
parent
6af39d63aa
commit
d7c93ec950
1 changed files with 2 additions and 4 deletions
|
@ -334,10 +334,8 @@ test_unit(void)
|
|||
CPS_ParseNTPSourceAdd(source_line, &source);
|
||||
|
||||
for (i = 0; i < 1000; i++) {
|
||||
if (random() % 2)
|
||||
source.params.interleaved = 1;
|
||||
if (random() % 2)
|
||||
source.params.authkey = get_random_key_id();
|
||||
source.params.interleaved = random() % 2;
|
||||
source.params.authkey = random() % 2 ? get_random_key_id() : INACTIVE_AUTHKEY;
|
||||
source.params.version = random() % 4 + 1;
|
||||
|
||||
UTI_ZeroTimespec(¤t_time);
|
||||
|
|
Loading…
Reference in a new issue