core: use ndn-cxx's getRandomNumberEngine()

Change-Id: I3b5b3ac5238d47ac14481b21d0303c63d0c93b56
diff --git a/tests/core/random.t.cpp b/tests/core/random.t.cpp
deleted file mode 100644
index dcd1576..0000000
--- a/tests/core/random.t.cpp
+++ /dev/null
@@ -1,55 +0,0 @@
-/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/**
- * Copyright (c) 2014-2016,  Regents of the University of California,
- *                           Arizona Board of Regents,
- *                           Colorado State University,
- *                           University Pierre & Marie Curie, Sorbonne University,
- *                           Washington University in St. Louis,
- *                           Beijing Institute of Technology,
- *                           The University of Memphis.
- *
- * This file is part of NFD (Named Data Networking Forwarding Daemon).
- * See AUTHORS.md for complete list of NFD authors and contributors.
- *
- * NFD is free software: you can redistribute it and/or modify it under the terms
- * of the GNU General Public License as published by the Free Software Foundation,
- * either version 3 of the License, or (at your option) any later version.
- *
- * NFD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
- * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE.  See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * NFD, e.g., in COPYING.md file.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-#include "core/random.hpp"
-
-#include "tests/test-common.hpp"
-
-#include <boost/thread.hpp>
-
-namespace nfd {
-namespace tests {
-
-BOOST_AUTO_TEST_SUITE(TestRandom)
-
-BOOST_AUTO_TEST_CASE(ThreadLocalRng)
-{
-  std::mt19937* s1 = &getGlobalRng();
-  std::mt19937* s2 = nullptr;
-  boost::thread t([&s2] {
-    s2 = &getGlobalRng();
-  });
-
-  t.join();
-
-  BOOST_CHECK(s1 != nullptr);
-  BOOST_CHECK(s2 != nullptr);
-  BOOST_CHECK(s1 != s2);
-}
-
-BOOST_AUTO_TEST_SUITE_END() // TestRandom
-
-} // namespace tests
-} // namespace nfd
diff --git a/tests/daemon/mgmt/face-manager.t.cpp b/tests/daemon/mgmt/face-manager.t.cpp
index 69b2116..cebbfd4 100644
--- a/tests/daemon/mgmt/face-manager.t.cpp
+++ b/tests/daemon/mgmt/face-manager.t.cpp
@@ -1,6 +1,6 @@
 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
 /*
- * Copyright (c) 2014-2018,  Regents of the University of California,
+ * Copyright (c) 2014-2019,  Regents of the University of California,
  *                           Arizona Board of Regents,
  *                           Colorado State University,
  *                           University Pierre & Marie Curie, Sorbonne University,
@@ -24,7 +24,6 @@
  */
 
 #include "mgmt/face-manager.hpp"
-#include "core/random.hpp"
 #include "face/protocol-factory.hpp"
 
 #include "nfd-manager-common-fixture.hpp"
@@ -38,6 +37,7 @@
 #include <ndn-cxx/mgmt/nfd/face-query-filter.hpp>
 #include <ndn-cxx/mgmt/nfd/face-status.hpp>
 #include <ndn-cxx/net/network-monitor-stub.hpp>
+#include <ndn-cxx/util/random.hpp>
 
 namespace nfd {
 namespace tests {
@@ -109,7 +109,7 @@
   randomizeCounter(const T& counter)
   {
     static std::uniform_int_distribution<typename T::rep> dist;
-    const_cast<T&>(counter).set(dist(getGlobalRng()));
+    const_cast<T&>(counter).set(dist(ndn::random::getRandomNumberEngine()));
   }
 
 protected: