Merge pull request #414 from lioncash/retval

fuzz_util: Simplify result return in InstructionGenerator's Generate() function
This commit is contained in:
Merry 2018-11-24 12:43:40 +00:00 committed by MerryMage
commit e1a9b17366

View file

@ -56,8 +56,6 @@ InstructionGenerator::InstructionGenerator(const char* format){
} }
u32 InstructionGenerator::Generate() const { u32 InstructionGenerator::Generate() const {
u32 inst; const u32 random = RandInt<u32>(0, 0xFFFFFFFF);
u32 random = RandInt<u32>(0, 0xFFFFFFFF); return bits | (random & ~mask);
inst = bits | (random & ~mask);
return inst;
} }