mirror of
https://gitlab.com/80486DX2-66/gists
synced 2025-01-09 23:17:48 +05:30
clock-malfunction-imitation.c: seed stdlib randomization
This commit is contained in:
parent
c2947aee3a
commit
3165f3c358
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user