Windows: [2/3] Libprocess: Used `os::random`.

Review: https://reviews.apache.org/r/47221/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/2f832018
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/2f832018
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/2f832018

Branch: refs/heads/master
Commit: 2f832018a2c0da77335fde33b964e673c2243b96
Parents: decad44
Author: Daniel Pravat <dpra...@outlook.com>
Authored: Fri May 13 11:09:06 2016 -0400
Committer: Joris Van Remoortere <joris.van.remoort...@gmail.com>
Committed: Fri May 13 11:27:58 2016 -0400

----------------------------------------------------------------------
 3rdparty/libprocess/src/tests/sequence_tests.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/2f832018/3rdparty/libprocess/src/tests/sequence_tests.cpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/tests/sequence_tests.cpp 
b/3rdparty/libprocess/src/tests/sequence_tests.cpp
index 566393f..2286312 100644
--- a/3rdparty/libprocess/src/tests/sequence_tests.cpp
+++ b/3rdparty/libprocess/src/tests/sequence_tests.cpp
@@ -23,6 +23,7 @@
 #include <process/sequence.hpp>
 
 #include <stout/nothing.hpp>
+#include <stout/os.hpp>
 
 using process::Clock;
 using process::Future;
@@ -255,7 +256,7 @@ TEST(SequenceTest, Random)
     // We randomly do 'pulse' and 'verify'. The idea here is that: if
     // sequence is not used, a 'verify' may see an intermediate
     // result of a 'pulse', in which case the value is not zero.
-    if (::random() % 2 == 0) {
+    if (os::random() % 2 == 0) {
       f = defer(process, &RandomProcess::pulse);
     } else {
       f = defer(process, &RandomProcess::verify);

Reply via email to