Index: base/rand_util.h |
diff --git a/base/rand_util.h b/base/rand_util.h |
index a4ea479e334edad7d181e5b4e27da46744deed11..307ce8a9d74542a20acaefe05446350ad24b0d6c 100644 |
--- a/base/rand_util.h |
+++ b/base/rand_util.h |
@@ -27,6 +27,10 @@ BASE_API uint64 RandGenerator(uint64 max); |
// Returns a random double in range [0, 1). Thread-safe. |
BASE_API double RandDouble(); |
+// Given input |bits|, convert with maximum precision to a random |
+// double in range [0, 1). Thread-safe. |
+BASE_API double BitsToRandDouble(uint64 bits); |
jar (doing other things)
2011/04/21 01:03:50
This doesn't create a random number, but only conv
Jói
2011/04/21 19:50:33
Changed to BitsToRandLikeDouble. Still not a great
|
+ |
} // namespace base |
#endif // BASE_RAND_UTIL_H_ |