From 4e5cf5e2645a887984d5f32c485dd7a7c2d7a2f1 Mon Sep 17 00:00:00 2001
From: Markus Blatt <mblatt@dune-project.org>
Date: Fri, 19 May 2006 12:33:46 +0000
Subject: [PATCH] time is not known by pgi

[[Imported from SVN: r4567]]
---
 common/test/arraylisttest.cc      | 2 +-
 common/test/iteratorfacadetest.cc | 2 +-
 common/test/iteratortest.hh       | 4 ++--
 common/test/sllisttest.cc         | 4 ++--
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/common/test/arraylisttest.cc b/common/test/arraylisttest.cc
index 9319b03b0..0b8f38fbc 100644
--- a/common/test/arraylisttest.cc
+++ b/common/test/arraylisttest.cc
@@ -26,7 +26,7 @@ template<class T, int size>
 void randomizeList(Dune::ArrayList<T,size>& alist){
   using namespace Dune;
 
-  srand((unsigned)time(0));
+  srand(300);
 
   int lowest=0, highest=1000, range=(highest-lowest)+1;
 
diff --git a/common/test/iteratorfacadetest.cc b/common/test/iteratorfacadetest.cc
index 02878b405..c076164ea 100644
--- a/common/test/iteratorfacadetest.cc
+++ b/common/test/iteratorfacadetest.cc
@@ -6,7 +6,7 @@
 #include <algorithm>
 
 void randomize(TestContainer<double>& cont){
-  srand((unsigned)time(0));
+  srand(300);
   double size=1000;
 
   for(int i=0; i < 100; i++) {
diff --git a/common/test/iteratortest.hh b/common/test/iteratortest.hh
index 4c0da3daf..10f26bb1a 100644
--- a/common/test/iteratortest.hh
+++ b/common/test/iteratortest.hh
@@ -50,7 +50,7 @@ int testBidirectionalIterator(Iter begin, Iter end, Opt opt)
     opt(*tend);
 
   typename Iter::difference_type size = std::distance(begin, end);
-  srand((unsigned)time(0));
+  srand(300);
 
   int no= (size>10) ? 10 : size;
 
@@ -79,7 +79,7 @@ int testRandomAccessIterator(Iter begin, Iter end, Opt opt){
 
   typename Iter::difference_type size = end-begin;
 
-  srand((unsigned)time(0));
+  srand(300);
 
   int no= (size>10) ? 10 : size;
 
diff --git a/common/test/sllisttest.cc b/common/test/sllisttest.cc
index 9c962e4cd..4467c8a08 100644
--- a/common/test/sllisttest.cc
+++ b/common/test/sllisttest.cc
@@ -90,7 +90,7 @@ template<typename T,class A>
 void randomizeListBack(Dune::SLList<T,A>& alist){
   using namespace Dune;
 
-  srand((unsigned)time(0));
+  srand(300);
 
   int lowest=0, highest=1000, range=(highest-lowest)+1;
 
@@ -109,7 +109,7 @@ template<typename T,class A>
 void randomizeListFront(Dune::SLList<T,A>& alist){
   using namespace Dune;
 
-  srand((unsigned)time(0));
+  srand(300);
   T vals[10];
 
   int lowest=0, highest=1000, range=(highest-lowest)+1;
-- 
GitLab