diff --git a/tests/fuzz_util.cpp b/tests/fuzz_util.cpp index 31e78043..c0ba9a96 100644 --- a/tests/fuzz_util.cpp +++ b/tests/fuzz_util.cpp @@ -56,8 +56,6 @@ InstructionGenerator::InstructionGenerator(const char* format){ } u32 InstructionGenerator::Generate() const { - u32 inst; - u32 random = RandInt(0, 0xFFFFFFFF); - inst = bits | (random & ~mask); - return inst; + const u32 random = RandInt(0, 0xFFFFFFFF); + return bits | (random & ~mask); }