summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerInterface.cpp
diff options
context:
space:
mode:
authorMike Aizatsky <aizatsky@chromium.org>2015-12-10 20:41:53 +0000
committerMike Aizatsky <aizatsky@chromium.org>2015-12-10 20:41:53 +0000
commita1a5c69b5799b3ce97939ff5151d6de97190ac58 (patch)
treebed3ab203b60f51b1657b867a147a125aa1c4e72 /llvm/lib/Fuzzer/FuzzerInterface.cpp
parent82bf85ffed9e5ffc39d98e27afbb1b53d97d9095 (diff)
downloadbcm5719-llvm-a1a5c69b5799b3ce97939ff5151d6de97190ac58.tar.gz
bcm5719-llvm-a1a5c69b5799b3ce97939ff5151d6de97190ac58.zip
[LibFuzzer] Introducing FUZZER_FLAG_UNSIGNED and using it for seeding.
Differential Revision: http://reviews.llvm.org/D15339 done llvm-svn: 255296
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerInterface.cpp')
-rw-r--r--llvm/lib/Fuzzer/FuzzerInterface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerInterface.cpp b/llvm/lib/Fuzzer/FuzzerInterface.cpp
index 79cb0e40f0e..bcd726fc08e 100644
--- a/llvm/lib/Fuzzer/FuzzerInterface.cpp
+++ b/llvm/lib/Fuzzer/FuzzerInterface.cpp
@@ -15,7 +15,7 @@
namespace fuzzer {
-void FuzzerRandomLibc::ResetSeed(int seed) { srand(seed); }
+void FuzzerRandomLibc::ResetSeed(unsigned int seed) { srand(seed); }
size_t FuzzerRandomLibc::Rand() { return rand(); }
OpenPOWER on IntegriCloud