]> git.cworth.org Git - apitrace/blobdiff - common/trace_fast_callset.cpp
Use rand() on windows.
[apitrace] / common / trace_fast_callset.cpp
index 3b5c570b088b4eac9c6d38ec0f630050242f92f4..5aebfd21cba9bf47ec2e4702e7df8d2b8695ffd0 100644 (file)
@@ -31,6 +31,7 @@
 #include <stdlib.h>
 #include <limits>
 
+#include "os.hpp"
 #include "trace_fast_callset.hpp"
 
 using namespace trace;
@@ -79,7 +80,7 @@ static int
 random_level (void)
 {
     /* tricky bit -- each bit is '1' 75% of the time */
-    long int bits = random() | random();
+    long int bits = os::random() | os::random();
     int        level = 1;
 
     while (level < MAX_LEVEL)