mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Correct missing std::time includes that vtkm::Math was hiding.
This commit is contained in:
parent
801473bc58
commit
310f1bc0a5
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user