From c98ca59a5e38485669504a9934ecaa86430b36c2 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Thu, 12 Apr 2018 21:53:47 -0700 Subject: [PATCH] algotune: make reseed public. --- misc/algotune/algotune.cc | 2 +- misc/algotune/algotune.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/algotune/algotune.cc b/misc/algotune/algotune.cc index 2357db1..6e60a04 100644 --- a/misc/algotune/algotune.cc +++ b/misc/algotune/algotune.cc @@ -12,7 +12,7 @@ static std::mt19937 rng; static std::random_device devrand; -static void +void reseed() { rng.seed(devrand()); diff --git a/misc/algotune/algotune.h b/misc/algotune/algotune.h index cd7bc14..c57866d 100644 --- a/misc/algotune/algotune.h +++ b/misc/algotune/algotune.h @@ -7,7 +7,7 @@ namespace algotune { int64_t display_step = 1000; - +void reseed(void); int rand_int(int low, int high); int64_t rand_int64(int64_t low, int64_t high);