Seed RNG
This commit is contained in:
@@ -352,6 +352,9 @@ static void click_config_provider(Window *window) {
|
|||||||
|
|
||||||
// set up the app on launch (don't put app logic in here);
|
// set up the app on launch (don't put app logic in here);
|
||||||
static void init() {
|
static void init() {
|
||||||
|
// seed RNG
|
||||||
|
srand(time(NULL));
|
||||||
|
|
||||||
// create main Window element and assign to pointer
|
// create main Window element and assign to pointer
|
||||||
s_main_window = window_create();
|
s_main_window = window_create();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user