Skip to content

Commit

Permalink
Windows: [2/3] Libprocess: Used os::random.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpravat authored and jmlvanre committed May 13, 2016
1 parent decad44 commit 2f83201
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 3rdparty/libprocess/src/tests/sequence_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <process/sequence.hpp>

#include <stout/nothing.hpp>
#include <stout/os.hpp>

using process::Clock;
using process::Future;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 2f83201

Please sign in to comment.