1 //===- FuzzerInterface.cpp - Mutate a test input --------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
9 // Parts of public interface for libFuzzer.
10 //===----------------------------------------------------------------------===//
13 #include "FuzzerInterface.h"
14 #include "FuzzerInternal.h"
18 void FuzzerRandomLibc::ResetSeed(int seed) { srand(seed); }
20 size_t FuzzerRandomLibc::Rand() { return rand(); }
22 UserSuppliedFuzzer::UserSuppliedFuzzer(FuzzerRandomBase *Rand)
23 : Rand(Rand), MD(*Rand) {}
25 UserSuppliedFuzzer::~UserSuppliedFuzzer() {
30 } // namespace fuzzer.