mirror of
https://gitlab.com/80486DX2-66/gists
synced 2024-12-26 02:29:50 +05:30
clock-malfunction-imitation.c: simplify randomization
This commit is contained in:
parent
f4b69e0f9f
commit
c2947aee3a
@ -50,7 +50,7 @@ time_t clock_change_time(time_t* x) {
|
|||||||
intmax_plus_1 = (size_t) INT_MAX + 1;
|
intmax_plus_1 = (size_t) INT_MAX + 1;
|
||||||
|
|
||||||
for (size_t i = 0; i < max; i++)
|
for (size_t i = 0; i < max; i++)
|
||||||
y |= (rand() % intmax_plus_1) * intmax_plus_1;
|
y |= rand() % intmax_plus_1;
|
||||||
} else
|
} else
|
||||||
ticks_before_accident--;
|
ticks_before_accident--;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user