mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 09:45:07 -05:00
test: fix distribution of settings in ntp_core unit test
This commit is contained in:
@@ -334,10 +334,8 @@ test_unit(void)
|
|||||||
CPS_ParseNTPSourceAdd(source_line, &source);
|
CPS_ParseNTPSourceAdd(source_line, &source);
|
||||||
|
|
||||||
for (i = 0; i < 1000; i++) {
|
for (i = 0; i < 1000; i++) {
|
||||||
if (random() % 2)
|
source.params.interleaved = random() % 2;
|
||||||
source.params.interleaved = 1;
|
source.params.authkey = random() % 2 ? get_random_key_id() : INACTIVE_AUTHKEY;
|
||||||
if (random() % 2)
|
|
||||||
source.params.authkey = get_random_key_id();
|
|
||||||
source.params.version = random() % 4 + 1;
|
source.params.version = random() % 4 + 1;
|
||||||
|
|
||||||
UTI_ZeroTimespec(¤t_time);
|
UTI_ZeroTimespec(¤t_time);
|
||||||
|
|||||||
Reference in New Issue
Block a user