about summary refs log tree commit diff
path: root/custom_mutators/libfuzzer/FuzzerRandom.h
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2021-01-04 15:14:20 +0100
committerhexcoder- <heiko@hexco.de>2021-01-04 15:14:20 +0100
commit33a7d6f1688856c050b0ac71ac1df4018e4d531c (patch)
tree9e2888ee429ff46ed59feedd39020e9c3bad5b55 /custom_mutators/libfuzzer/FuzzerRandom.h
parentc423aebb1a6987d8ca58175aee23bc08b611d4c8 (diff)
downloadafl++-33a7d6f1688856c050b0ac71ac1df4018e4d531c.tar.gz
code cleanups (from cppcheck)
Diffstat (limited to 'custom_mutators/libfuzzer/FuzzerRandom.h')
-rw-r--r--custom_mutators/libfuzzer/FuzzerRandom.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/custom_mutators/libfuzzer/FuzzerRandom.h b/custom_mutators/libfuzzer/FuzzerRandom.h
index 659283ee..7b1e1b1d 100644
--- a/custom_mutators/libfuzzer/FuzzerRandom.h
+++ b/custom_mutators/libfuzzer/FuzzerRandom.h
@@ -16,7 +16,7 @@
 namespace fuzzer {
 class Random : public std::minstd_rand {
  public:
-  Random(unsigned int seed) : std::minstd_rand(seed) {}
+  explicit Random(unsigned int seed) : std::minstd_rand(seed) {}
   result_type operator()() { return this->std::minstd_rand::operator()(); }
   size_t Rand() { return this->operator()(); }
   size_t RandBool() { return Rand() % 2; }