[compiler-rt] r201548 - [asan] Replace rand_r with rand in test.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Tue Feb 18 00:03:45 PST 2014
Author: eugenis
Date: Tue Feb 18 02:03:44 2014
New Revision: 201548
URL: http://llvm.org/viewvc/llvm-project?rev=201548&view=rev
Log:
[asan] Replace rand_r with rand in test.
Modified:
compiler-rt/trunk/test/asan/TestCases/contiguous_container.cc
Modified: compiler-rt/trunk/test/asan/TestCases/contiguous_container.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/contiguous_container.cc?rev=201548&r1=201547&r2=201548&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/contiguous_container.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/contiguous_container.cc Tue Feb 18 02:03:44 2014
@@ -18,10 +18,9 @@ void TestContainer(size_t capacity) {
char *end = beg + capacity;
char *mid = beg + capacity;
char *old_mid = 0;
- unsigned seed = 0;
for (int i = 0; i < 10000; i++) {
- size_t size = rand_r(&seed) % (capacity + 1);
+ size_t size = rand() % (capacity + 1);
assert(size <= capacity);
old_mid = mid;
mid = beg + size;
More information about the llvm-commits
mailing list