diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2020-07-26 19:36:28 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2020-07-26 19:36:28 +0000 |
commit | cfca06d7963fa0909f90483b42a6d7d194d01e08 (patch) | |
tree | 209fb2a2d68f8f277793fc8df46c753d31bc853b /compiler-rt/lib/gwp_asan/random.h | |
parent | 706b4fc47bbc608932d3b491ae19a3b9cde9497b (diff) |
Notes
Diffstat (limited to 'compiler-rt/lib/gwp_asan/random.h')
-rw-r--r-- | compiler-rt/lib/gwp_asan/random.h | 3 |
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(); |