summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bench/main.cpp1
-rw-r--r--tabulator-mpi/worker.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/bench/main.cpp b/bench/main.cpp
index 70d3cfa..f28545f 100644
--- a/bench/main.cpp
+++ b/bench/main.cpp
@@ -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);
}
diff --git a/tabulator-mpi/worker.cpp b/tabulator-mpi/worker.cpp
index ea1b17a..55121aa 100644
--- a/tabulator-mpi/worker.cpp
+++ b/tabulator-mpi/worker.cpp
@@ -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) {