summaryrefslogtreecommitdiff
path: root/gnu/llvm/compiler-rt/lib/gwp_asan/random.h
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/llvm/compiler-rt/lib/gwp_asan/random.h')
-rw-r--r--gnu/llvm/compiler-rt/lib/gwp_asan/random.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/llvm/compiler-rt/lib/gwp_asan/random.h b/gnu/llvm/compiler-rt/lib/gwp_asan/random.h
index 5fcf30d557e..953b98909e9 100644
--- a/gnu/llvm/compiler-rt/lib/gwp_asan/random.h
+++ b/gnu/llvm/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();