File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 14
14
#include < random>
15
15
16
16
namespace fuzzer {
17
- class Random : public std ::mt19937 {
17
+ class Random : public std ::minstd_rand {
18
18
public:
19
- Random (unsigned int seed) : std::mt19937 (seed) {}
20
- result_type operator ()() { return this ->std ::mt19937 ::operator ()(); }
19
+ Random (unsigned int seed) : std::minstd_rand (seed) {}
20
+ result_type operator ()() { return this ->std ::minstd_rand ::operator ()(); }
21
21
size_t Rand () { return this ->operator ()(); }
22
22
size_t RandBool () { return Rand () % 2 ; }
23
23
size_t SkewTowardsLast (size_t n) {
Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ if(COMPILER_RT_DEFAULT_TARGET_ARCH IN_LIST FUZZER_SUPPORTED_ARCH)
46
46
FOLDER "Compiler-RT Runtime tests" )
47
47
48
48
if ("${CMAKE_SYSTEM_NAME} " STREQUAL "Linux" AND COMPILER_RT_LIBCXX_PATH)
49
- set (LIBFUZZER_TEST_RUNTIME_DEPS libcxx_fuzzer_${arch} -build )
49
+ file (GLOB libfuzzer_headers ../*.h)
50
+ set (LIBFUZZER_TEST_RUNTIME_DEPS libcxx_fuzzer_${arch} -build ${libfuzzer_headers} )
50
51
set (LIBFUZZER_TEST_RUNTIME_CFLAGS -isystem ${LIBCXX_${arch} _PREFIX}/include /c++/v1)
51
52
set (LIBFUZZER_TEST_RUNTIME_LINK_FLAGS ${LIBCXX_${arch} _PREFIX}/lib/libc++.a)
52
53
endif ()
You can’t perform that action at this time.
0 commit comments