aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2022-01-21 23:19:45 -0900
committerDavid M. Syzdek <david@syzdek.net>2022-01-21 23:19:45 -0900
commit983a0897b39858383e3c73216229ef93a1331ee5 (patch)
tree3eac0a5a5192e27ae146e440a2d43f94c78e4d25 /tests
parent919d83cd51fe4328a012a4326cc48f3098099535 (diff)
downloadtinyrad-983a0897b39858383e3c73216229ef93a1331ee5.tar.gz
tinyrad-983a0897b39858383e3c73216229ef93a1331ee5.tar.bz2
tinyrad-983a0897b39858383e3c73216229ef93a1331ee5.tar.xz
tinyrad-983a0897b39858383e3c73216229ef93a1331ee5.zip
tests: replacing CLOCK_UPTIME_RAW with CLOCK_MONOTONIC
Diffstat (limited to 'tests')
-rw-r--r--tests/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/common.c b/tests/common.c
index 0e9eb89..f8c1d93 100644
--- a/tests/common.c
+++ b/tests/common.c
@@ -559,7 +559,7 @@ void our_initialize(const char * program_name)
559 tinyrad_set_option(NULL, TRAD_OPT_DEBUG_IDENT, program_name); 559 tinyrad_set_option(NULL, TRAD_OPT_DEBUG_IDENT, program_name);
560 560
561 // seed random() 561 // seed random()
562 clock_gettime(CLOCK_UPTIME_RAW, &ts); 562 clock_gettime(CLOCK_MONOTONIC, &ts);
563 srandom((unsigned)(ts.tv_sec + ts.tv_sec)); 563 srandom((unsigned)(ts.tv_sec + ts.tv_sec));
564 564
565 return; 565 return;