mirror of
https://gitlab.com/80486DX2-66/gists
synced 2024-12-28 09:10:21 +05:30
C: clock-malfunction-imitation.c: remove IR leftovers
This commit is contained in:
parent
685154e035
commit
5123278748
@ -46,9 +46,8 @@ time_t clock_change_time(time_t* x) {
|
|||||||
if (ticks_before_accident == 0) {
|
if (ticks_before_accident == 0) {
|
||||||
y = 0;
|
y = 0;
|
||||||
|
|
||||||
size_t max = sizeof(time_t) / sizeof(int);
|
size_t max = sizeof(time_t) / sizeof(int),
|
||||||
printf("max of clock_change_time = %zu\n", max);
|
intmax_plus_1 = (size_t) INT_MAX + 1;
|
||||||
size_t 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() & INT_MAX) * intmax_plus_1;
|
y |= (rand() & INT_MAX) * intmax_plus_1;
|
||||||
|
Loading…
Reference in New Issue
Block a user