OSDN Git Service
(root)
/
android-x86
/
system-extras.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17cf898
)
Test Util Library - remove drand48 workaround
author
Louis Huemiller
<lhuemill@google.com>
Wed, 22 Dec 2010 01:39:56 +0000
(17:39 -0800)
committer
Louis Huemiller
<lhuemill@google.com>
Wed, 22 Dec 2010 01:39:56 +0000
(17:39 -0800)
Change-Id: I2bc8e3c83931bac3ce81e6ac34b5f97d8cd680fa
tests/lib/testUtil/testUtil.c
patch
|
blob
|
history
diff --git
a/tests/lib/testUtil/testUtil.c
b/tests/lib/testUtil/testUtil.c
index
376e569
..
a6eb6e6
100644
(file)
--- a/
tests/lib/testUtil/testUtil.c
+++ b/
tests/lib/testUtil/testUtil.c
@@
-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.