1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2024-12-27 05:40:17 +05:30

C: clock-malfunction-imitation.c: remove unsafe optimization

This commit is contained in:
Intel A80486DX2-66 2024-02-21 21:52:41 +03:00
parent 5123278748
commit a0d4c9d104
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -50,7 +50,7 @@ time_t clock_change_time(time_t* x) {
intmax_plus_1 = (size_t) INT_MAX + 1;
for (size_t i = 0; i < max; i++)
y |= (rand() & INT_MAX) * intmax_plus_1;
y |= (rand() % intmax_plus_1) * intmax_plus_1;
} else
ticks_before_accident--;