[GWP-ASan] Add thread ID to PRNG seed.
authorMitch Phillips <mitchphillips@outlook.com>
Tue, 16 Jul 2019 20:06:17 +0000 (20:06 +0000)
committerMitch Phillips <mitchphillips@outlook.com>
Tue, 16 Jul 2019 20:06:17 +0000 (20:06 +0000)
commitb157dcacb5b96fd64900906911832a8ac3bb189e
treeb43ecaf76ba58d317dd26860af5569c50736f4c7
parent6e0fa292c22cde726b4ddb53cf1fa8c649384030
[GWP-ASan] Add thread ID to PRNG seed.

Summary:
Adds thread ID to PRNG seed for increased entropy. In particular, this allows
multiple runs in quick succession that will have different PRNG seeds, allowing
for better demos/testing.

Reviewers: kcc

Reviewed By: kcc

Subscribers: kubamracek, #sanitizers, llvm-commits

Tags: #sanitizers, #llvm

Differential Revision: https://reviews.llvm.org/D64453

llvm-svn: 366253
compiler-rt/lib/gwp_asan/guarded_pool_allocator.h
compiler-rt/lib/gwp_asan/random.cpp