code cleanups (from cppcheck)

This commit is contained in:
hexcoder-
2021-01-04 15:14:20 +01:00
parent c423aebb1a
commit 33a7d6f168
11 changed files with 24 additions and 24 deletions

View File

@ -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; }