From 616413d5a2068474b52797226035f6b165e20477 Mon Sep 17 00:00:00 2001 From: yusuf ebrahim Date: Wed, 14 Sep 2022 17:20:16 -0400 Subject: [PATCH] fix unchanging seed --- src/displayapp/screens/Dice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/displayapp/screens/Dice.cpp b/src/displayapp/screens/Dice.cpp index 41f95c1938..0b7e50e9a8 100644 --- a/src/displayapp/screens/Dice.cpp +++ b/src/displayapp/screens/Dice.cpp @@ -16,7 +16,7 @@ static void btnRollEventHandler(lv_obj_t* obj, lv_event_t event) { Dice::Dice(DisplayApp* app, Controllers::DateTime& dateTime) : Screen(app) { - srand(time(nullptr) - dateTime.Uptime().count()); + srand(time(nullptr) + dateTime.Uptime().count()); lv_obj_t* dLabel = lv_label_create(lv_scr_act(), nullptr); lv_obj_set_style_local_text_font(dLabel, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, &jetbrains_mono_42);