actually seed prng

This commit is contained in:
Benji Dial 2023-06-07 01:15:41 -04:00
parent c33cd47706
commit a9afa12358
2 changed files with 2 additions and 0 deletions

View file

@ -6,6 +6,7 @@ std::chrono::nanoseconds time_between_steps;
std::mutex core_mutex;
int main(int argc, char **argv) {
lib94::seed_prng(time(0));
auto app = Gtk::Application::create("net.benjidial.lib94.bench");
return app->make_window_and_run<bench_window>(argc, argv);
}

View file

@ -30,6 +30,7 @@ static void do_round(const lib94::warrior *w1, const lib94::warrior *w2, int &w1
}
void worker_main(const lib94::warrior *const *warriors) {
lib94::seed_prng(time(0));
int buffer[4] = {-1};
while (1) {