From c2f3e0fc25bb80ac90ac930ef4e830a7b8ea5ffb Mon Sep 17 00:00:00 2001 From: Steve Huston Date: Fri, 29 Jan 1999 22:54:21 +0000 Subject: Don't init a long with ACE_OS::thr_self - on HP-UX 10.20, it's a struct. --- docs/tutorials/017/barrier.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/tutorials') diff --git a/docs/tutorials/017/barrier.cpp b/docs/tutorials/017/barrier.cpp index 287c3c8be8a..4386ad83ad8 100644 --- a/docs/tutorials/017/barrier.cpp +++ b/docs/tutorials/017/barrier.cpp @@ -47,7 +47,8 @@ int Test::svc(void) // Initialize the random number generator. We'll use this to // create sleep() times in each thread. This will help us see // if the barrier synch is working. - ACE_RANDR_TYPE seed = ACE_OS::thr_self(); + ACE_Time_Value now(ACE_OS::gettimeofday()); + ACE_RANDR_TYPE seed = now.usec(); ACE_OS::srand(seed); int delay; -- cgit v1.2.1