summaryrefslogtreecommitdiff
path: root/compiler-rt/lib/gwp_asan/random.h
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/gwp_asan/random.h')
-rw-r--r--compiler-rt/lib/gwp_asan/random.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler-rt/lib/gwp_asan/random.h b/compiler-rt/lib/gwp_asan/random.h
index 5fcf30d557ee..953b98909e95 100644
--- a/compiler-rt/lib/gwp_asan/random.h
+++ b/compiler-rt/lib/gwp_asan/random.h
@@ -12,6 +12,9 @@
#include <stdint.h>
namespace gwp_asan {
+// Initialise the PRNG, using time and thread ID as the seed.
+void initPRNG();
+
// xorshift (32-bit output), extremely fast PRNG that uses arithmetic operations
// only. Seeded using walltime.
uint32_t getRandomUnsigned32();