summaryrefslogtreecommitdiffstats
path: root/lldb/test/threads/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/threads/main.cpp')
-rw-r--r--lldb/test/threads/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/test/threads/main.cpp b/lldb/test/threads/main.cpp
index ae0ccfe2506..9216f7ec01c 100644
--- a/lldb/test/threads/main.cpp
+++ b/lldb/test/threads/main.cpp
@@ -60,7 +60,7 @@ thread_func (void *arg)
while (mask_access(eGet) & thread_mask)
{
// random micro second sleep from zero to 3 seconds
- long usec = ::random() % 3000000;
+ int usec = ::rand() % 3000000;
printf ("%s (thread = %u) doing a usleep (%li)...\n", __FUNCTION__, thread_index, usec);
::usleep (usec);
printf ("%s (thread = %u) after usleep ...\n", __FUNCTION__, thread_index); // Set break point at this line.
OpenPOWER on IntegriCloud