[asan] Replace rand_r with rand in test.

llvm-svn: 201548
This commit is contained in:
Evgeniy Stepanov 2014-02-18 08:03:44 +00:00
parent b73db72a17
commit 77d9ae6c0f
1 changed files with 1 additions and 2 deletions

View File

@ -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;