mirror of
https://gitlab.com/80486DX2-66/gists
synced 2025-05-31 08:31:41 +05:30
clock-malfunction-imitation.c: seed stdlib randomization
This commit is contained in:
@@ -167,6 +167,8 @@ void time_flow_test(time_t (*time_function)(time_t*)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
|
srand(time(NULL));
|
||||||
|
|
||||||
TEST_LABEL("clock_change_time");
|
TEST_LABEL("clock_change_time");
|
||||||
time_flow_test(&clock_change_time);
|
time_flow_test(&clock_change_time);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user