OSDN Git Service

Test Util Library - remove drand48 workaround
authorLouis Huemiller <lhuemill@google.com>
Wed, 22 Dec 2010 01:39:56 +0000 (17:39 -0800)
committerLouis Huemiller <lhuemill@google.com>
Wed, 22 Dec 2010 01:39:56 +0000 (17:39 -0800)
Change-Id: I2bc8e3c83931bac3ce81e6ac34b5f97d8cd680fa

tests/lib/testUtil/testUtil.c

index 376e569..a6eb6e6 100644 (file)
@@ -223,8 +223,7 @@ int testRandBool(void)
  */
 double testRandFract(void)
 {
-    // TODO: use drand48(), after issue 2838717 has been fixed
-    return (double) lrand48() / (double) (1UL << 31);
+    return drand48();
 }
 
 // Delays for the number of seconds specified by amt or a greater amount.