core: use C++11 <random> instead of Boost.Random
Change-Id: I8f22965b86c681581762a47995f29f888421a558 Refs: #3599
This commit is contained in:
1 parent
89c4cca866
commit
5f47aa6140
11 files changed
+61
-67
No files matched your search
@@ -1,6 +1,6 @@
|
||||
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
||||
/**
|
||||
* Copyright (c) 2014-2015, Regents of the University of California,
|
||||
* Copyright (c) 2014-2016, Regents of the University of California,
|
||||
* Arizona Board of Regents,
|
||||
* Colorado State University,
|
||||
* University Pierre & Marie Curie, Sorbonne University,
|
||||
@@ -32,15 +32,15 @@
|
||||
namespace nfd {
|
||||
namespace tests {
|
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(TestRandom, BaseFixture)
|
||||
BOOST_AUTO_TEST_SUITE(TestRandom)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(ThreadLocalRandon)
|
||||
BOOST_AUTO_TEST_CASE(ThreadLocalRng)
|
||||
{
|
||||
boost::random::mt19937* s1 = &getGlobalRng();
|
||||
boost::random::mt19937* s2 = nullptr;
|
||||
std::mt19937* s1 = &getGlobalRng();
|
||||
std::mt19937* s2 = nullptr;
|
||||
boost::thread t([&s2] {
|
||||
s2 = &getGlobalRng();
|
||||
});
|
||||
s2 = &getGlobalRng();
|
||||
});
|
||||
|
||||
t.join();
|
||||
|
||||
@@ -49,7 +49,7 @@ BOOST_AUTO_TEST_CASE(ThreadLocalRandon)
|
||||
BOOST_CHECK(s1 != s2);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
BOOST_AUTO_TEST_SUITE_END() // TestRandom
|
||||
|
||||
} // namespace tests
|
||||
} // namespace nfd
|
||||
Reference in new issue
Block a user