aboutsummaryrefslogtreecommitdiff
path: root/bbot/utility.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bbot/utility.cxx')
-rw-r--r--bbot/utility.cxx15
1 files changed, 0 insertions, 15 deletions
diff --git a/bbot/utility.cxx b/bbot/utility.cxx
index 83249ad..6fcc463 100644
--- a/bbot/utility.cxx
+++ b/bbot/utility.cxx
@@ -4,9 +4,6 @@
#include <bbot/utility>
-#include <chrono>
-#include <cstdlib> // rand_r()
-
#include <bbot/diagnostics>
using namespace std;
@@ -14,18 +11,6 @@ using namespace butl;
namespace bbot
{
- static unsigned int rand_seed; // Seed for rand_r();
-
- size_t
- genrand ()
- {
- if (rand_seed == 0)
- rand_seed = static_cast<unsigned int> (
- chrono::system_clock::now ().time_since_epoch ().count ());
-
- return static_cast<size_t> (rand_r (&rand_seed));
- }
-
void
run_trace (tracer& t, const char* cmd[], size_t n)
{