summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-01-02 19:02:35 +0000
committernw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-01-02 19:02:35 +0000
commitaf62d8a32e1ecc06ff21b81d860d0a45f1c702a3 (patch)
treec3759e413b59748bf4cc618ac739e5c5c0a1cf3d
parent3828cb491b9c105dac260a027b095914182f1453 (diff)
downloadATCD-af62d8a32e1ecc06ff21b81d860d0a45f1c702a3.tar.gz
Changed drand48 () to ACE_OS::rand () * 1.0.
-rw-r--r--TAO/tests/Param_Test/helper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/TAO/tests/Param_Test/helper.cpp b/TAO/tests/Param_Test/helper.cpp
index 174d64dd1a5..f2aac2ffd5a 100644
--- a/TAO/tests/Param_Test/helper.cpp
+++ b/TAO/tests/Param_Test/helper.cpp
@@ -1,4 +1,4 @@
-// $Id
+// $Id$
// ============================================================================
//
@@ -66,7 +66,7 @@ Generator::gen_fixed_struct (void)
this->fixed_struct_.c = ACE_OS::rand () % 128;
this->fixed_struct_.s = (CORBA::Short) ACE_OS::rand ();
this->fixed_struct_.o = ACE_OS::rand () % 128;
- this->fixed_struct_.f = (CORBA::Float) drand48 ();
+ this->fixed_struct_.f = (CORBA::Float) ACE_OS::rand () * 1.0;
this->fixed_struct_.b = (CORBA::Boolean) ACE_OS::rand () % 2;
this->fixed_struct_.d = (ACE_OS::rand () * 1.0);
return this->fixed_struct_;