Loading utils.c +2 −2 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ #include <time.h> // timespec struct // get random value from device FILE *get_urandom() { FILE *get_urandom(void) { FILE *urandom = fopen("/dev/urandom", "rb"); return urandom; } Loading @@ -18,7 +18,7 @@ void sleep_ms(const unsigned int ms) { nanosleep(&ts, NULL); } void clear_screen() { void clear_screen(void) { #ifdef _WIN32 system("cls"); #else Loading utils.h +2 −2 Original line number Diff line number Diff line Loading @@ -6,8 +6,8 @@ #define UTILS_H #include <stdio.h> FILE *get_urandom(); FILE *get_urandom(void); void sleep_ms(unsigned int ms); void clear_screen(); void clear_screen(void); #endif //UTILS_H yaht.c +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ int main(void) { // un-hold all dice clear_held_values(&ctx); // do_demo_dice_rolls(&ctx, next_roll); // if you want to see a little demo // do_demo_dice_rolls(&ctx, next_roll); // uncomment if you want to see a little demo fclose(ctx.random_device_fd); return 0; Loading Loading
utils.c +2 −2 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ #include <time.h> // timespec struct // get random value from device FILE *get_urandom() { FILE *get_urandom(void) { FILE *urandom = fopen("/dev/urandom", "rb"); return urandom; } Loading @@ -18,7 +18,7 @@ void sleep_ms(const unsigned int ms) { nanosleep(&ts, NULL); } void clear_screen() { void clear_screen(void) { #ifdef _WIN32 system("cls"); #else Loading
utils.h +2 −2 Original line number Diff line number Diff line Loading @@ -6,8 +6,8 @@ #define UTILS_H #include <stdio.h> FILE *get_urandom(); FILE *get_urandom(void); void sleep_ms(unsigned int ms); void clear_screen(); void clear_screen(void); #endif //UTILS_H
yaht.c +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ int main(void) { // un-hold all dice clear_held_values(&ctx); // do_demo_dice_rolls(&ctx, next_roll); // if you want to see a little demo // do_demo_dice_rolls(&ctx, next_roll); // uncomment if you want to see a little demo fclose(ctx.random_device_fd); return 0; Loading