diff options
Diffstat (limited to 'lib/Fuzzer/FuzzerInterface.cpp')
-rw-r--r-- | lib/Fuzzer/FuzzerInterface.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/Fuzzer/FuzzerInterface.cpp b/lib/Fuzzer/FuzzerInterface.cpp deleted file mode 100644 index bcd726fc08e45..0000000000000 --- a/lib/Fuzzer/FuzzerInterface.cpp +++ /dev/null @@ -1,30 +0,0 @@ -//===- FuzzerInterface.cpp - Mutate a test input --------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// Parts of public interface for libFuzzer. -//===----------------------------------------------------------------------===// - - -#include "FuzzerInterface.h" -#include "FuzzerInternal.h" - -namespace fuzzer { - -void FuzzerRandomLibc::ResetSeed(unsigned int seed) { srand(seed); } - -size_t FuzzerRandomLibc::Rand() { return rand(); } - -UserSuppliedFuzzer::UserSuppliedFuzzer(FuzzerRandomBase *Rand) - : Rand(Rand), MD(*Rand) {} - -UserSuppliedFuzzer::~UserSuppliedFuzzer() { - if (OwnRand) - delete Rand; -} - -} // namespace fuzzer. |