diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-21 07:02:36 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-21 07:02:36 +0200 |
commit | af1285bdf7a0365bae5bf23f4022abbc0d2cb526 (patch) | |
tree | 6609a099dd3364567bb03ff1f837dd2e9e0ec2de /bbot/utility.cxx | |
parent | ca35746ba41437b1ced31d689ec51203c960bfb4 (diff) |
Make compilable on Windows
Diffstat (limited to 'bbot/utility.cxx')
-rw-r--r-- | bbot/utility.cxx | 15 |
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) { |