1 //===-- random.h ------------------------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef GWP_ASAN_RANDOM_H_
10 #define GWP_ASAN_RANDOM_H_
15 // Initialise the PRNG, using time and thread ID as the seed.
18 // xorshift (32-bit output), extremely fast PRNG that uses arithmetic operations
19 // only. Seeded using walltime.
20 uint32_t getRandomUnsigned32();
21 } // namespace gwp_asan
23 #endif // GWP_ASAN_RANDOM_H_