Correct missing std::time includes that vtkm::Math was hiding.

This commit is contained in:
Robert Maynard 2016-09-02 14:44:30 -04:00
parent 801473bc58
commit 310f1bc0a5
3 changed files with 7 additions and 5 deletions

@ -32,7 +32,7 @@ VTKM_THIRDPARTY_PRE_INCLUDE
#include <boost/random/uniform_int_distribution.hpp>
VTKM_THIRDPARTY_POST_INCLUDE
#include <time.h>
#include <ctime>
#include <vector>
@ -195,7 +195,7 @@ RectilinearTests()
void
TestDataSetBuilderRectilinear()
{
vtkm::UInt32 seed = static_cast<vtkm::UInt32>(time(nullptr));
vtkm::UInt32 seed = static_cast<vtkm::UInt32>(std::time(nullptr));
std::cout << "Seed: " << seed << std::endl;
g_RandomGenerator.seed(seed);

@ -32,7 +32,7 @@ VTKM_THIRDPARTY_PRE_INCLUDE
#include <boost/random/uniform_real_distribution.hpp>
VTKM_THIRDPARTY_POST_INCLUDE
#include <time.h>
#include <ctime>
namespace {
@ -287,7 +287,7 @@ struct TestPCoordsFunctor
void TestAllPCoords()
{
vtkm::UInt32 seed = static_cast<vtkm::UInt32>(time(nullptr));
vtkm::UInt32 seed = static_cast<vtkm::UInt32>(std::time(nullptr));
std::cout << "Seed: " << seed << std::endl;
g_RandomGenerator.seed(seed);

@ -29,6 +29,8 @@ VTKM_THIRDPARTY_PRE_INCLUDE
#include <boost/random/uniform_real_distribution.hpp>
VTKM_THIRDPARTY_POST_INCLUDE
#include <ctime>
namespace {
boost::mt19937 g_RandomGenerator;
@ -199,7 +201,7 @@ struct TryTransformsFunctor
void TestTransforms()
{
vtkm::UInt32 seed = static_cast<vtkm::UInt32>(time(nullptr));
vtkm::UInt32 seed = static_cast<vtkm::UInt32>(std::time(nullptr));
std::cout << "Seed: " << seed << std::endl;
g_RandomGenerator.seed(seed);